How to Install Mono 4.0.1 on Debian 8

How to install Mono 4.0.1 on Debian 8?

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.

Install Older Version of Mono

Edit your /etc/apt/sources.list.d/mono-xamarin.list and change:

deb http://download.mono-project.com/repo/debian wheezy main

to:

deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5.1 main

That will pin it to version 4.0.5.1.

FYI: Make sure that you do not have any alpha/beta repos for mono in any of your /etc/apt/sources/list.d/xxxxx.list files.

Basic Steps to Downgrade:

sudo apt-get remove mono-complete
# Edit your mono-xamarin.list and pin it to the version of your choice.
sudo apt-get update
sudo apt-get install mono-complete

Accessing older releases If for some reason you want to pin an older
version of Mono rather than updating to the latest, you can modify the
Debian repository to “wheezy/snapshots/X.XX.X” instead of “wheezy”.
For example, “wheezy/snapshots/3.10.0” will lock you to that version.

These snapshots will cease receiving updates as soon as the next major
Mono version gets uploaded - for example, as soon as Mono 3.12 gets
uploaded, 3.10 will never receive updates.

On RPM distributions, force the package version in your package
manager - all older versions are published in the YUM metadata and
should be available.

Ref: http://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases

Ref: Versions available:

http://download.mono-project.com/repo/debian/pool/main/m/mono/

How to install mono 3 on Debian testing?

I have used packages from stable Debian release to build UE.

In order to install libmono-corlib4.0-cil from stable:

  1. Add stable package repository into your /etc/apt/sources.list
  2. Run sudo apt-get update
  3. Install aptitude if you don't have it
  4. Run sudo aptitude -t stable install libmono-corlib4.0-cil

If you have some packages newer then libmono-corlib4.0-cil requires, aptitude will report an error and ask you what to do. In one of the solutions it will suggest to downgrade those packages to appropriate version. Use that solution and you will get libmono-corlib4.0-cil installed.

You may also edit file Engine/Build/BatchFiles/Linux/Setup.sh inside your directory with UE sources and replace line (should be 78th)

sudo apt-get install -y $DEP

with

sudo aptitude -t stable install $DEP

And then rerun Setup.sh script. This may help you avoiding similar problems with other packages required by UE.

There may be a way to do everything with apt-get, but I don't know it.

And I'm afraid this way won't allow you to have both versions of mono-runtime

Rollback mono 4.0.1 to 3.12.0

First remove mono 4.0.1

sudo apt-get remove mono-complete

sudo apt-get purge mono-complete

sudo apt-get autoremove

After a few attempts, I have modified my repo like this, which seems to have worked:

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

then ran:

sudo apt-get update

sudo apt-get install mono-complete

mono --version

I am now running 3.12

Install Mono-Complete 4.8 on Ubuntu

Pin the version to the snapshots directory:

echo "deb http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.0.520 main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update

After modifying/update the caches, you can use apt-cache policy {package} to determine if the version you wish to install is available.

>apt-cache policy mono-complete
mono-complete:
Installed: (none)
Candidate: 4.8.0.520-0xamarin3
Version table:
4.8.0.520-0xamarin3 500
500 http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.0.520/main amd64 Packages
4.6.2.7+dfsg-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 Packages

Now you can install 4.8.0.520-0xamarin3:

sudo apt-get install -y mono-complete=4.8.0.520-0xamarin3 


Related Topics



Leave a reply



Submit