Linux Ubuntu 使用 apt-get 安装 Apache2 报错时的解决方案

郑少龙 · April 07, 2018 · 1092 hits

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
No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up