Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Mono 4.0.1 on Debian 8?

Tags:

linux

mono

debian

I am attempting to install Mono-Complete onto a fresh brand new installation of Debian 8 in order to use ASP.NET 5 as per (code.visualstudio.com/docs), have followed the mono-project.com documentation for Ubuntu 12.04/Debian 8 or later with regards to the second repository that is needed.

However, after following the instructions and attempting to do 'apt-get install mono-complete' I end up with the following issue: http://puu.sh/hxdLB/dbecbf9645.png

This is on a 100% fresh Debian 8 VM (Virtualbox), just finished installing Debian 8 NetInst + Cinnamon, logged into the system as root and added the 2 repos.

If I try and manually install one of those dependencies (such as mono-devel) it comes up with an even bigger list of unmet dependencies that won't be installed.

like image 239
Raymond Herring Avatar asked May 01 '15 07:05

Raymond Herring


People also ask

How do I install an older version of mono?

list file for the version you want and remove the version of mono you have. Then apt update, then install mono-complete. An easy way to know you are correctly downloading and compiling a different version is that apt will prompt you asking if you want to download the files, and the size will be different.

What is the latest version of mono?

Mono's current version is 6.0. 0 (as of August 2019). This version provides the core API of the . NET Framework and support for Visual Basic.NET and C# 7.0.


2 Answers

I resolved this by following article posted by Alexander but also installed one more package monodevelop.

Following commands i run to install mod mono on debian 8.0 jessie:

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-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

sudo apt-get install mono-complete

To get development IDE run:

sudo apt-get install monodevelop

After then can successfully run : sudo a2enmod mod_mono_auto

like image 79
Lnux Avatar answered Sep 17 '22 23:09

Lnux


There was an issue with the Mono packages that should now be resolved, please see http://www.mono-project.com/docs/getting-started/install/linux/#libgdiplus-debian-80-and-later-not-ubuntu.

The reason is that Debian 8 doesn't have libjpeg8 anymore which libgdiplus (a component of Mono) requires.

like image 20
Alexander Köplinger Avatar answered Sep 19 '22 23:09

Alexander Köplinger