无法在Ubuntu 14.04中安装apache2

无法在Ubuntu 14.04中安装apache2,ubuntu,apache2,Ubuntu,Apache2,在我的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)

在我的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 aptitude install

您可以使用

sudo apt-get remove apache2*
然后使用

sudo apt-get install apache2

您可以使用

sudo apt-get remove apache2*
然后使用

sudo apt-get install apache2

那应该行!如果未检查是否有任何未删除的配置文件。使用Where is Apache2应该可以工作!如果未检查是否有任何未删除的配置文件。使用Where is apache2