Ubuntu 12.04 LTS Install (fix for libmono-cil-dev error)

Have been using sonarr for a couple days - it’s fantastic! Big improvement over sickbeard. However, the installation process was not smooth on my Ubuntu 12.04 server, which had problems getting the proper version of mono. Posting my solution in case it helps anyone in the future. (12.04 is old, but it’s a LTS with a couple more years of support, so would expect some to still be using it!)

I was getting the following error when I tried to install sonarr: Depends: libmono-cil-dev (>= 3.2) but it is not going to be installed

Attempts to install libmono-cil-dev, and other mono packages, did not work (there were always missing dependencies), even after adding the sonarr repositories, which are supposed to have mono on it. Also tried the “compile it yourself” option linked on sonarr’s instructions page, which also did not work; even though mono appeared to install, I’d still get the same error. Suggestions found on google and this forum (for example, here), also did not work.

Here’s what worked for me, which adds mono repositories that work with 12.04 and then installs mono (based on instructions on mono’s website here):

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
echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete

Next, I followed the sonarr installation instructions here: https://github.com/Sonarr/Sonarr/wiki/Installation#linux

Then, to make sonarr autostart on boot, I set up an Upstart script, following the “Method 1” instructions here: https://github.com/Sonarr/Sonarr/wiki/Autostart-on-Linux

After those steps, everything worked perfectly! Hope this helps someone!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.