如何在Ubuntu 14.04.3 LTS上安装/配置mod_mono

本文关键字:安装 配置 mod mono LTS Ubuntu | 更新日期: 2023-09-27 18:26:55

在Ubuntu 14.04.3上,我正在运行Mono Framework和MonoDevelop的最新版本,请参阅

如何在Ubuntu上安装最新版本的Mono和MonoDevelop?

我的目标是让ASP.net MVC 5.2网站在apache下运行。所以我安装了mono-apache server4

sudo apt-get install mono-apache-server4

但是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: mono-apache-server (< 3.8.1) but 4.2-2~xamarin1 is to be installed or
                                mono-apache-server4 (< 3.8.1) but 4.2-2~xamarin1 is to be installed or
                                mono-apache-server2 (< 3.8.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我在谷歌上搜索了很多关于这个问题的内容,但我无法解决这个问题。有人知道解决方案吗?

非常感谢,Jordy

如何在Ubuntu 14.04.3 LTS上安装/配置mod_mono

对不起,这是我几天前在XSP包更新中引入的一个错误-mod mono包被硬编码为拒绝针对意外的新XSP安装,但我已经忘记了它。

构建的包&为所有架构上传。

您可能正在使用第三方存储库,请将其删除。

/etc/apt/sources.list.d/

之后,apt-get update

再试一次

原始页面上有以下说明:http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu及其衍生物

有一个部分";mod_mono(Ubuntu 13.10及以后版本、Debian 8.0及以后版本)";,上面写着:

要在Ubuntu 13.10及更高版本、Debian 8.0及更高版(及其衍生版本)上启用mod_mono安装,除了上面的通用Debian/Uubuntu存储库外,您还需要向系统添加第二个存储库(如果您不使用sudo,请确保切换到root):

回声;debhttp://download.mono-project.com/repo/debian喘息-厚24-compat main"|sudo tee-a/etc/apt/sources.list.d/mono-xamarin.list