Unknown package error during update

btw my sonarr doesnt work anymore now… it’s a mess…

How can I make sonarr and osmc live together ?

Edit : I tried to reinstall libmono but I get this :

osmc@osmc:~$ sudo apt-get install libmono-cil-dev -y
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:
 libmono-cil-dev : Depends: libmono2.0-cil (= 3.10.0-0xamarin2) but it is not going to be installed

and there is a lot of line like that


EDIT : Ok, here is an update. My problem is that sonarr repository contains a specific version of mono and this version create a conflict with the version in Jessie. This clash creates some unmet dependencies, if you upgrade.
So OSMC tried to upgrate it (why not?!), finds it can’t… so it removes all broken packages, an all packages and files that use these packages, including my sonarr installation…
So according to this page (I follow that to install Sonarr) : Install Sonarr Raspberry Pi with Mono 3.10 •

We need to lower pin preference

sudo nano /etc/apt/preferences

Add these lines

Package: *
Pin: release n=jessie
Pin-Priority: 998

Note that wheezy need to be replaced by jessie

Save with Ctrl+X, Y and Enter
Now update packages and install

sudo apt-get update
sudo apt-get install libmono-cil-dev -y

After this, everything is ok. You can remove of empty the preference file. (and your sonarr database is still alive !!!)

For the future update, I will remove sonarr repository from /etc/apt/sources.list.