Mono 5 on osmc?

is there a way to install the most recent version of mono (5) on osmc rasperry 3?

would the following version work?
http://www.mono-project.com/download/#download-lin-raspbian

(i was able to install version 3 before and its running fine, now i need to upgrade.)

cheers
bendsch

I can’t say if it will work, but OSMC is based on Debian, so you’d need to choose that, rather than Raspbian.

I can tell you that Debian stretch currently has mono v4.

after uninstalling old mono and trying to install debian stretch mono i get the following error:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
mono-devel : Hängt ab von: libmono-cecil-private-cil (< 3.2.9) aber 5.4.1.6-0xamarin1+debian9b1 soll installiert werden
Hängt ab von: libmono-corlib2.0-cil (>= 3.2.8) soll aber nicht installiert werden
Hängt ab von: libmono-peapi2.0a-cil (>= 3.2.8) soll aber nicht installiert werden
Hängt ab von: libmono-security2.0-cil (>= 3.0.6) soll aber nicht installiert werden
Hängt ab von: libmono-system-data2.0-cil (>= 3.0.6) soll aber nicht installiert werden
Hängt ab von: libmono-system-web2.0-cil (>= 2.10.3) soll aber nicht installiert werden
Hängt ab von: libmono-system2.0-cil (>= 3.2.1) soll aber nicht installiert werden
Hängt ab von: libmono2.0-cil (>= 3.0.6) soll aber nicht installiert werden
Hängt ab von: mono-mcs (= 3.2.8+dfsg-10) soll aber nicht installiert werden
Hängt ab von: mono-gac (= 3.2.8+dfsg-10) aber 4.2.3.4-0xamarin2 soll installiert werden
Hängt ab von: mono-xbuild (= 3.2.8+dfsg-10) soll aber nicht installiert werden
Hängt ab von: libmono-cil-dev (= 3.2.8+dfsg-10) soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

translation: all the packages should not be installed but are unmet dependencies.

how do i solve this?

There’s a risk that trying to get around the unmet dependencies will break the system.

If you can live with Mono v4, and can wait a while longer, OSMC will be upgrading to stretch soon.

ok but just one question about your first reply: so osmc is still on raspbian 8 jessie, so i would have to choose that package right?

http://www.mono-project.com/download/#download-lin-raspbian

No, OSMC is on Debian jessie.

ok, i have no idea how to get to version 4, so i guess i will stick with this guide (https://www.htpcguides.com/install-sonarr-raspberry-pi-mono-310/) and install precompiled mono 3 again …

thanx for your help!

Install direct from mono-project repo
sudo echo "deb http://download.mono-project.com/repo/debian/dists/stable-raspbianjessie/main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt-get update
sudo apt-get install mono-devel -y
sudo apt-get install mono-complete -y
sudo apt-get install mono-vbnc -y

As noted earlier, OSMC uses Debian, not Raspbian.

See Redirecting… for the correct repository.

Thanks for that.
Last time I looked some months ago the raspianjessie repo was on v5 but the debian one was still on v4, which is why I suggested the raspbian one. Works fine from either.

worked perfectly with debian 8 repo

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo “deb Index of /repo/debian jessie main” | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update

thx for the help!

I’m trying to use Jackett with Sickrage and it needs Mono. I followed the instructions for installing the latest version of Mono (5.10.1) for Debian Stretch (found here: Download - Stable | Mono), but when I then check the mono version using mono --version I see this:
Mono JIT compiler version 3.10.0 (mono-3.10.0-branch/ce003f4 Tue Nov 25 20:18:29 UTC 2014)
And, when I try to run jackett using mono /opt/jackett/JackettConsole.exe I get this error:
04-30 19:19:48 Info App config/log directory: /home/osmc/.config/Jackett
04-30 19:19:48 Info Starting Jackett 0.8.929.0
04-30 19:19:48 Info Environment version: 4.0.30319.17020 (/usr/local/lib/mono/4.5)
04-30 19:19:48 Info OS version: Unix 3.14.29.69
04-30 19:19:48 Info ThreadPool MaxThreads: 400 workerThreads, 16 completionPortThreads
04-30 19:19:48 Info issue: OSMC: Open Source Media Center \n \l
04-30 19:19:48 Info mono version: 3.10.0 (mono-3.10.0-branch/ce003f4 Tue Nov 25 20:18:29 UTC 2014)
04-30 19:19:48 Error Your mono version is to old (mono 3 is no longer supported). Please update to the latest version from http://www.mono-project.com/download/

Can anyone suggest a reason for this and/or advise how to get the newer version installed?

Which mono package did you install?

What’s the output from:

cat /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
apt-cache show <the package you installed>

Which mono package did you install?

Step 2 of the instructions in the link I mentioned above said to install mono-devel. Is that what you mean?

What’s the output …

http://paste.osmc.io/udafumejiq.m

The output is only for the apt-cache command, but no worries.

Can you run grab-logs -A (with a big A) and let us know the URL.

Plus also post the output from cat /etc/apt/sources.list.d/mono-official-stable.list

I may be incorrect but mono-devel is for compiling code, mono-complete is likely what you want to running code.

Indeed. The blurb for mono-complete says:

This is a metapackage and pulls in the Mono runtime, development tools and
all libraries.
.
Install this package if you want to run software for Mono or Microsoft .NET
which you are not installing from a Debian package.

https://paste.osmc.tv/ififisexob

cat /etc/apt/sources.list.d/mono-official-stable.list

deb https://download.mono-project.com/repo/debian stable-stretch main

Regarding mono-devel vs mono-complete… All the guides I’ve looked at for installing Jackett seem to say mono-devel is required. But, I’ve also tried installing mono-complete and when I did I got the same error.

There’s this line in the installed packages section:

ii  mono                                                        3.10-1                                                      armhf        Mono 3.10 armhf

which is probably the one it’s picking up. I’ve searched for when mono 3.10-1 was installed but it’s not in the log, so I’d guess it was quite a while ago.

You could try removing the mono package:

sudo apt-get remove mono

I doubt if it will try to remove mono-complete but even if it does, you can always reinstall it.

Ok. That did it. Thanks.

I had tried removing mono-devel and mono-complete several times but I never tried removing mono because I didn’t realise it was another package and don’t remember installing it.

Cheers