无法在Ubuntu 14.04中安装apache2

问题描述 投票:0回答:2

在我的ubuntu 14.04 LTS上安装apache2时遇到以下错误

The following packages have unmet dependencies:
apache2 : Depends: apache2-bin (= 2.4.7-1ubuntu4.18) but 2.4.10-1ubuntu1.1~ubuntu14.
          04.2 is to be installed
Depends: apache2-data (= 2.4.7-1ubuntu4.18) but 2.4.10-1ubuntu1.1~ubuntu14.04.2 is 
          to be installed
ubuntu apache2
2个回答
1
投票

找到以前的包裹妨碍了。完全删除它。然后试试

sudo aptitude install

1
投票

您可以完全删除使用

sudo apt-get remove apache2*

然后安装使用

sudo apt-get install apache2
© www.soinside.com 2019 - 2024. All rights reserved.