Hi Fourdee,

I have run into problems with Emby crashing which their forum admin thinks is due to me running Mono v 5.4 - they only support up to v 4.8.1.

I have updated Mono with apt-get update without thinking too much about it which is no doubt why I have ended up with this version.

Just tried to install Emby on a spare device and I see it uses Mono 4.8.1 - how can I prevent apt-get update from offering updates to this version?


Hi John,

If you remove the mono repo from system, should prevent it overwriting during apt-get upgrades

rm /etc/apt/sources.list.d/mono-xamarin.list
apt-get clean
apt-get update

Another option is to hold the packages:

apt-mark hold PACKAGENAME

Hi John,

or :

echo "<package-name> hold" |  dpkg --set-selections

Thanks guys.

Big problems here. I have uninstalled Emby and removed Mono using these instructions:


Mono appears to have gone as mono -V produces no response.

Reinstalling Emby pulls in Mono v 5.4 not the 4.8.1 version I need and Emby keeps crashing.

Any ideas how to fix this - preferably just by removing/replacing Mono and keeping Emby to avoid having to rebuild its database?


Finally seem to have fixed this but it was a pig of a job.

Uninstall emby-server

Remove all traces of mono 5.4 https://askubuntu.com/questions/644938/how-to-completely-remove-mono

In /etc/apt/sources.list.d changed mono.xamarin.list to contain this line:
deb http://download.mono-project.com/repo/debian wheezy/snapshots/ main

Therefore locking in this version of mono.

In /etc/apt/sources.list.d in emby-server.list have this line:
deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/ /

apt-get update

apt-get install mono-devel= (possibly an unnecessary step)

Installed two missing components of Emby https://emby.media/community/index.php?/topic/46965-emby-install-on-clean-raspbian-8-jessie-make-it-sticky/

apt-get install emby-server (had to do this manually as the dietpi-software way didn’t work, possibly due to undetected mono 5.4 files left over?).

All good! Spent hours on this and a couple of sleepless nights.
All because I somehow updated mono - no fault of dietpi here.