Ubuntu 使用 apt-get 安装 Apache2 报如下错误时的解决方案
The following packages have unmet dependencies:
apache2 : Depends: apache2-bin (= 2.4.7-1ubuntu4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
运行如下命令
sudo apt-get -f autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
然后再重新运行安装命令
sudo apt-get install apache2