从 13.04 升级到 13.10 后无法安装 lamp-server^

从 13.04 升级到 13.10 后无法安装 lamp-server^

我安装了 13.04,因为直接使用 13.10 安装在 UEFI 模式下不起作用。

当我sudo apt-get install lamp-server^失败时:

The following packages have unmet dependencies:
 apache2 : Conflicts: apache2.2-common but 2.2.22-6ubuntu5.1 is to be installed
 apache2-bin : Conflicts: apache2.2-common but 2.2.22-6ubuntu5.1 is to be installed
 apache2-data : Conflicts: apache2.2-common but 2.2.22-6ubuntu5.1 is to be installed
 apache2.2-common : Depends: apache2.2-bin (= 2.2.22-6ubuntu5.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该如何修复这个问题以便可以安装灯?

答案1

备份/etc/apache2,然后尝试:

sudo apt-get purge apache2

然后尝试lamp-server^再次安装。

相关内容