Mono:Ubuntu 上的 Apache mod_mono 安装问题

Mono:Ubuntu 上的 Apache mod_mono 安装问题

我正在尝试在 Ubuntu 14.04.3 LTS 上安装 mod_mono。我尝试了以下命令并收到错误:

sudo apt-get install libapache2-mod-mono mono-apache-server

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.

我已经安装了最新的单声道版本。

 sudo apt-get install mono-complete

请建议我该怎么做?

谢谢

答案1

安装mono-apache-server4而不是mono-apache-server使用libapache2-mod-mono

因此,尝试一下:

apt-get install libapache2-mod-mono mono-apache-server4

相关内容