在我的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
找到以前的包裹妨碍了。完全删除它。然后试试
sudo aptitude install
您可以完全删除使用
sudo apt-get remove apache2*
然后安装使用
sudo apt-get install apache2