最近使用Ubuntu 14.04
重新安装了我的电脑。
此电脑用于开发ASP.NET
单声道应用程序。
所以我安装了Mono的最新3.12.0版本。
还安装了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应用程序?
答案 0 :(得分:1)
通过安装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
注意:您需要将精确的存储库添加到软件源中,否则您将无法安装该软件包。