在 ubuntu 10.04 上安装 apache2 时出现问题

在 ubuntu 10.04 上安装 apache2 时出现问题

我已经从源代码手动安装了 apache,但是现在需要使用 apt-get 来安装它,因为这似乎可以使从 apt-get 安装 mod_wsgi 变得更容易(我猜它会看到 apache2 已安装)

所以现在当我运行时sudo apt-get install apache2出现以下错误:

The following packages have unmet dependencies:
  apache2: Depends: apache2-mpm-worker (= 2.2.14-5ubuntu8.10) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.14-5ubuntu8.10) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.14-5ubuntu8.10) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.14-5ubuntu8.10) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.14-5ubuntu8.10) but it is not going to be installed
E: Broken packages

甚至在尝试安装 apache2.2.-bin(因为 2.2-common 依赖于它)时,也会出现以下错误:

The following packages have unmet dependencies:
  apache2.2-bin: Depends: libaprutil1-dbd-sqlite3 but it is not going to be installed or
                          libaprutil1-dbd-mysql but it is not going to be installed or
                          libaprutil1-dbd-odbc but it is not going to be installed or
                          libaprutil1-dbd-pgsql but it is not going to be installed or
                          libaprutil1-dbd-freetds but it is not going to be installed
                 Depends: libaprutil1-ldap but it is not going to be installed
E: Broken packages

浏览一下后我明白了,它说它不知道要安装哪一个依赖项(似乎全部有效)。

例如运行时出现最后一个错误:sudo apt-get install libaprutil1-dbd-sqlite3

The following packages have unmet dependencies:
  libaprutil1-dbd-sqlite3: Depends: libaprutil1 (= 1.3.9+dfsg-3ubuntu0.10.04.1) but 1.3.9+dfsg-5 is to be installed
E: Broken packages

有什么帮助吗?

答案1

您不能只安装“apache2”,因为这是通用组件。您需要安装特定的 MPM,例如“apache2-mpm-worker”。您试过吗?

相关内容