我在安装 apache2.2-common 时遇到问题。实际问题是安装 libapache2-mod-mono,但出现 apache2.2-common 依赖项错误。
这是错误消息。你知道我该怎么做才能安装它吗?我正在运行 Linux Mint 13。
$ sudo apt-get install apache2.2-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apache2 : Depends: apache2-data (= 2.4.6-2~precise+1) but it is not going to be installed
Conflicts: apache2.2-common but 2.2.22-1ubuntu1.4 is to be installed
apache2-bin : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.4 is to be installed
apache2.2-common : Depends: apache2.2-bin (= 2.2.22-1ubuntu1.4) but 2.4.6-2~precise+1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
更新:
更多信息:我卸载了一堆东西并从头开始。现在,当我尝试安装 apache2.2-common 时,我只收到一个错误:
The following packages have unmet depenecies:
apache2.2-common : Depends: apache2.2-bin (=2.2.22-1ubuntu1.4) but it is not going to be installed.
E: Unable to correct problems you have held broken packages.
答案1
尝试将is not going to be installed
软件包添加到主安装列表:
sudo apt-get install apache2.2-bin apache2.2-common