Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 2.4.7 mod mono-won';t安装ubuntu 14.04_Apache_Ubuntu_Mono_Mod Mono - Fatal编程技术网

Apache 2.4.7 mod mono-won';t安装ubuntu 14.04

Apache 2.4.7 mod mono-won';t安装ubuntu 14.04,apache,ubuntu,mono,mod-mono,Apache,Ubuntu,Mono,Mod Mono,最近用Ubuntu 14.04重新安装了我的电脑 这台电脑用于开发ASP.NETmono应用程序 所以我安装了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 informatio

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

这台电脑用于开发
ASP.NET
mono应用程序

所以我安装了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应用程序的建议?

通过安装apache2.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


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

不确定,这就是为什么我要发表评论的原因,但看起来mod mono依赖于Apache2.2-common,您已经安装了Apache2.4.7。您可能需要下载Apache版本。另外,Mod_Mono是Apache1.3/2.0/2.2/2.4模块。另一个可能无法与Apache2.4.7配合使用的原因是如何安装2.2?我仔细看了看,找不到解决办法。我做了一个
apt缓存
,但是没有2.2版本。apt只会得到支持的包。在Ubuntu 14.04上,您可能需要手动安装Apache 2.2或2.4版之前的版本。这将很好地工作,并将安装支持的so库,如common和bin。这一切都取决于你如何安装ApacheYeh试图安装一个旧版本,但没有运气。Apache在安装后启动时就会失败。您需要为mod_mono添加一个兼容性存储库,以便与Apache 2.4配合使用:我想我确实添加了这一点,但它仍然抱怨,我会尝试设置另一个框,并再次按照此链接上的说明进行操作,以查看它是否有效。谢谢你,顺便说一句。