Apache 2.4.7 mod-mono 不会安装 ubuntu 14.04

Apache 2.4.7 mod-mono won't install ubuntu 14.04

最近用Ubuntu 14.04重新安装了我的电脑。

这台电脑将用于开发 ASP.NET 单声道应用程序。

所以我安装了最新的3.12.0版本的Mono。

还安装了 Apache2(2.4.7 是最新的)。

最后一件事是安装 Mod_Mono。这是它失败的地方。

sudo apt-get install libapache2-mod-mono 
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:
 libapache2-mod-mono : Depends: apache2.2-common but it is not installable
E: Unable to correct problems, you have held broken packages.

所以我尝试安装 apache2.2-common 但那个不存在,只有一个 apache2.2-bin。我安装了它,但它仍然没有解决我的问题。

sudo apt-get install apache2.2-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apache2.2-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  apache2-bin:i386 apache2:i386 apache2-data apache2-bin apache2

E: Package 'apache2.2-common' has no installation candidate

有什么建议可以让我通过 apache2 托管我的 Mono 应用程序吗?

通过安装 Apache 2.2.22 解决了这个问题。

这样做有点麻烦,但最终安装了它 运行 这个命令。

sudo apt-get install apache2=2.2.22-1ubuntu1.7 apache2.2-common=2.2.22-1ubuntu1.7 apache2.2-bin=2.2.22-1ubuntu1.7 apache2-mpm-worker=2.2.22-1ubuntu1.7

注意:您需要将精确的存储库添加到您的软件源中,否则您将无法安装可用的软件包。