Jordy
Jordy

Reputation: 671

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

I'm trying to install the latest version of the Mono framework and MonoDevelop on my system. Yesterday I tried the installation on Ubuntu (14.04 LTS) and on Debian (V8.2) today. Both installations failed. I used this official installation guide.

http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives

I executed this commands.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

The following error occured.

root@debian:/home/administrator# apt-get install mono-complete
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:
 mono-complete : Depends: mono-devel (= 4.2.1.102-0xamarin1) but it is not going to be installed
                 Depends: mono-4.0-service (= 4.2.1.102-0xamarin1) but it is not going to be installed
                 Depends: libmono-cil-dev (= 4.2.1.102-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Does anyone know a solution?

Thanks a lot, Jordy

Upvotes: 1

Views: 8847

Answers (1)

SushiHangover
SushiHangover

Reputation: 74209

Try the following:

sudo apt-get install libjpeg62-turbo

And if you get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libjpeg62-turbo 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 E: 
Package 'libjpeg62-turbo' has no installation candidate

Assuming you are on a ARCH 64-bit system, then you can get this package via:

wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.4.1-2_amd64.deb

Install the deb:

sudo dpkg --install --recursive --auto-deconfigure libjpeg62-turbo_1.4.1-2_amd64.deb 

Now install mono/monodevelop:

sudo apt-get install mono-devel
sudo apt-get install monodevelop

Re: http://sushihangover.github.io/mono-ubuntu-broken/ (disclaimer, this is my blog post)

Upvotes: 3

Related Questions