简体   繁体   中英

How to install/configure mod_mono on Ubuntu 14.04.3 LTS?

On Ubuntu 14.04.3 I'm running the latest version of the Mono Framework and MonoDevelop, see

How to install the latest version of Mono and MonoDevelop on Ubuntu?

My goal is to get ASP.net MVC 5.2 website running under apache. So I installed mono apache server4

sudo apt-get install mono-apache-server4

..but the installation of mod_mono failed

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.

I googled a lot on this problem, but I cannot solve the issue. Does anyone know a solution?

Thanks a lot, Jordy

Sorry, this was a bug I introduced a few days ago with an XSP package update - the mod-mono package is hardcoded to refuse to install against unexpectedly new XSP, but I had forgotten about it.

Packages built & uploaded for all architectures.

You're probably using a 3rd party repository, delete it.

/etc/apt/sources.list.d/

After that, apt-get update .

Try it again!

There are instructions on the original page: http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives

There is a section "mod_mono (Ubuntu 13.10 and later, Debian 8.0 and later)", and it says:

To enable mod_mono installation on Ubuntu 13.10 and later, and Debian 8.0 and later (and their derivatives), you will need to add a second repository to your system, in addition to the generic Debian/Ubuntu repository above (if you don't use sudo, be sure to switch to root):

echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM