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

Sorin · 2018年04月07日 · 1243 次阅读

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
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册