【发布时间】:2013-09-27 15:38:00
【问题描述】:
我尝试安装mod_security,但它有错误,所以我尝试了aptitude:
apt-get install libapache-mod-security
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:
libapache-mod-security : Depends: libapache2-modsecurity but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@srv16540:~# aptitude install libapache2-modsecurity
The following NEW packages will be installed:
apache2.2-common{ab} libapache2-modsecurity modsecurity-crs{a}
0 packages upgraded, 3 newly installed, 0 to remove and 10 not upgraded.
Need to get 660 kB of archives. After unpacking 2,861 kB will be used.
The following packages have unmet dependencies:
apache2 : 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 installed.
apache2-bin : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.4 is to be installed.
apache2-data : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.4 is to be installed.
The following actions will resolve these dependencies:
**Keep the following packages at their current version:**
1) apache2.2-common [Not Installed]
2) libapache2-modsecurity [Not Installed]
3) modsecurity-crs [Not Installed]
Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
我现在知道将以下软件包保持在当前版本是什么意思。
我想知道如果我按下是会发生什么。它是否替换我当前的 apache2?在执行此操作之前我需要备份吗?
【问题讨论】:
-
您是否在系统上使用了任何导致此冲突的第三方存储库?您是否尝试过运行 apt-get update 然后安装软件包?
-
@TeTeT:是的,我用过 apt-get 和 apt-upgrade,我也用过 apache 2.4,我不记得我是怎么安装的了。同样,当我在解决方案中按 y 接受时,它什么也不做......
标签: apache ubuntu apache2 debian mod-security