Ubuntu – Cannot Install Mono (Depends Errors)

mono

I cannot install Mono. I have the PPA added. After doing 'sudo apt-get update' and 'sudo apt-get upgrade', I then try 'sudo apt-get install mono-complete' and I get this:

owner@Linux:~$ sudo 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.2.30-0xamarin1) but it is not going to be installed
                 Depends: mono-4.0-service (= 4.2.2.30-0xamarin1) but it is not going to be installed
                 Depends: libmono-cil-dev (= 4.2.2.30-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
owner@Linux:~$ dpkg --get-selections | grep hold
owner@Linux:~$ 

So nothing is held back. I even went to Software & Updates and unchecked all the default sources and the ones I added only leaving these three enabled:

http://download.mono-project.com/repo/debian wheezy main
http://download.mono-project.com/repo/debian wheezy-apache24-compat main
http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main

Another 'sudo apt-get update' and 'sudo apt-get upgrade', I then try 'sudo apt-get install mono-complete' and get the same error.

Best Answer

Thanks to a comment to my question by xangua, I saw I had added a PPA that was not meant for Ubuntu. If you follow their instructions at http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives, be sure to not accidentally add the libgdiplus PPA.

Related Question