How to Install Unity and MonoDevelop on Ubuntu 16.04 - Linux

OK folks!

I’m new in Linux and I had some issues to install Unity on Ubuntu.

I spent some 2 weeks fighting against my Ubuntu16.04 to make Unity work with MonoDevelp nice and easy. As far as I have in my mind that if I know something, I have to teach others, so here I’m to try save the day.

Lets go step by step.

ALERT: DO NOT TRY ANYTHING BESIDES THE STEPS I AM SHOWING HERE!!!

1) Install Unity on Ubuntu 16.04.

Go to this link, scroldown all they way to the botton. Check the last post. You will see the link to download the .deb. So, go ahead and do it. (Forget the terminal, I had lots of issues when I tryied to install via Terminal).

After download, go to the directory where you installed the .deb and double-click it.

Once in the website, scroll allll the waaaaayyy doowwn to the bottom to the last post. You will see the download link. For experience don’t download via torrent, use the direct link.

Once you download the .deb. You will see the install window. Just click in install.

When it’s finished, you can check on the launcher the Unity properly installed.

Yes, it is that simple.

2) Install MonoDevelop.

Forget the lamme built-in MonoDevelop. You have to install MonoDevelop outside Unity.

You can install it in 2 different ways (Both work fine):

a) From Ubuntu Software Store (Easiest way).

Go to the Ubuntu Software Store ans browse the MonoDevelp from there and install it. Yep, that’s it.

b) From MonoDevelop website (Hard way)


Now, do it exactly as it says:

Copy these codes in the Terminal (The whole thing in this order):

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Than this other code (the whole thing):

echo “deb http://download.mono-project.com/repo/ubuntu xenial main” | sudo tee /etc/apt/sources.list.d/mono-official.list

Than:

sudo apt-get update

Than:

sudo apt-get install mono-devel

Perfect, now you have MonoDevelop installed in you Ubuntu 16.04

3) last step : Assign the external MonoDevelop on Unity:

Open unity, Go to edit, Preferences, External tools & External script editor. Click browse then go to this path [ /opt/Unity/MonoDevelop/bin & choose MonoDevelop.exe.

And that’s it!
Mazal Tov! You have Unity and MonoDevelopment working 99,9% on your Ubuntu.

Why 99,9%? Because there are some bugs on MonoDevelop and I suggest you to check this links to learn how to fix it!

Did it work for you? Please leave a comment! :wink:

2 Likes

Just a note from my experience, you can use the “lame” monoDevelop that comes with Unity, in fact it’s best to if you want to do step-by-step debugging with the Unity Editor. But you do have to install the non-Unity version too. It must have something it needs I guess.
Also, I sudo apt install’ed these packages:
mono-reference-assemblies-2.0 and mono-reference-assemblies-3.5 otherwise I got syntax errors for things like System.Random
I did try on other linux distros, but there was always lots of problems, Ubuntu is definitely the way to go with the least amount of issues! :slight_smile:

1 Like

Hi,
I will post my experience with configuring unity + monodevelop in your thread if you don’t mind.

Running linux + cinnamon 2.8.8 64bit on mint 17.3
Unity 5.5.0, 20161125, deb install (dep to add libstdc++32, realpath)

Mono develop from Unity 5.5.0 opens but for and unknown reason refuse to “see” any unity documentation, same with the solution. Scripts compil but it’s not usable.
I installed Mono from repository, this one don’t start at all.
I had previously installed unity 5.1.0f3 from tar.gz, From edit > preference >external tool I’m pointing to this one, and now it open the solution + documentation. Just one thing, you must open the script directly from monoDevelop because unity will open a new ide each time.

[QUOTE=“Satscape, post: 3174807, member: 372381”, I sudo apt install’ed these packages:
mono-reference-assemblies-2.0 and mono-reference-assemblies-3.5 otherwise I got syntax errors for things like System.Random[/QUOTE]

Could you post here the sudos you use for: mono-reference-assemblies-2.0 and mono-reference-assemblies-3.5?
Thanks in advance.

All info regarding Linux is important. Thanks for sharing.

I cannot proceed…
There is no libpng12-0

erik@erik-Inspiron-5548:~/Downloads$ sudo gdebi unity-editor-5.1.0f3+2015082501_amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reading state information… Done
Este pacote não pode ser desinstalado
Dependency is not satisfiable: libpng12-0

erik@erik-Inspiron-5548:~/Downloads$

Could you post here the sudos you use for: mono-reference-assemblies-2.0 and mono-reference-assemblies-3.5?
Thanks in advance.[/QUOTE]

I sudo apt install exactly those package names I mentioned, they are in the repos for Ubuntu:

mono-reference-assemblies-2.0/zesty,zesty,now 3.12.1+dfsg-2 all [installed]
Mono runtime - compiler compatibility for .NET 2.0

mono-reference-assemblies-3.5/zesty,zesty,now 3.12.1+dfsg-2 all [installed]
Mono runtime - compiler compatibility for .NET 3.5

Hi, my problem were two.
I was trying to install under Ubuntu 17.04 and using the packages of unity-editor-5.1.0f3+2015082501_amd64.deb (so i discover it was a outdated package)
And i try with the new package unity-editor_amd64-2017.1.1xf1Linux.deb , the unity appear to install, but the software don’t open.

So i installed a outdated version of ubuntu , the 16.04 LTS.
With the unity-editor-5.1.0f3+2015082501_amd64.deb + ubuntu 16.04 LTS the program installed and open, but at the first time i create a project show a system erro and crash the software, after i open the project was there, but when i run it a the play don’t run, and a lot of erro message appear


The script don’t run, nothing run

I used "20170809" package

I used those steps Redirecting… :
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo “deb http://download.mono-project.com/repo/ubuntu xenial main” | sudo tee /etc/apt/sources.list.d/mono-official.list

sudo apt-get update

sudo apt-get install mono-devel
sudo apt-get install mono-complete
sudo apt-get install mono-dbg
sudo apt-get install referenceassemblies-pcl
sudo apt-get install ca-certificates-mono
sudo apt-get install mono-xsp4

After that i fallowing those steps this Download .NET (Linux, macOS, and Windows)
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

“17.04”
sudo sh -c ‘echo “deb [arch=amd64] Index of /repos/microsoft-ubuntu-zesty-prod/ zesty main” > /etc/apt/sources.list.d/dotnetdev.list’

sudo apt-get update
" sudo apt-get install dotnet-sdk-2.0.0 " (at this the problem show)

{

}

For me this worked out:
I installed Unity3D with their (official) installer normally (in my case: http://beta.unity3d.com/download/3c89f8d277f5/public_download.html ( Unity on Linux: Release Notes and Known Issues ))

Then I installed monodevelop:
sudo apt install monodevelop

After that in Unity3D I selceted Edit → Preferences → External Tools → External Scripteditor → Browse → and navigated to /usr/bin/monodevelop.

Done :slight_smile:

I believe things got better after new releases!!

when I am try to sign in it showing service not available

This is the way to go.
I had several issues regarding unity on Linux, but this way always worked on all machines I used.
Install mono from their page (all mentioned packs mono-complete is not enough)
Install mono editor from Ubuntu store
Install dotnet sdk from Ms page
Install vs code
Install unity
Add vs code add on to project everything works

P. S. : I only tried Unity versions up to 2017.2 that have a .deb
Also vs code is optional I personal prefer it. In Vs code you need to ad the c# debugger and unity debuggee

On my new laptop I just installed unity 2018. Mono-delve and visual studio code. Everything ran great. Well except webgl and android won’t build but this is apparently a real bug

On my Lenovo laptop,I installed Unity 3d Linux,but why it don’t start?
P.S. My English is bad

Have you check to see if you have all the dependencies installed? There’s a list of them in the download thread.

For me it always creates a new instance when I try to open a cs script from the editor and doesn’t navigate to show the file

Unity-2018-2.0b7 was no problem to install on Ubuntu 18.04. Then I installed Monodevelop like upper recommendation.
Now I can start monodevelop from /usr/bin/monodevelop! Unfortunately there are some assembly failures. Therefore I install the two “mono-reference-assemblies”-files. One times monodevelop starts without failure, but now the link /usr/bin/monodevelop is disappeared !! Where is now the “launcher” ? Please, can someone help me to start monodevelop. Thanks and greetings from Kiel/Germany

I made some notes from the last time I installed MonoDevelop:

sudo apt install monodevelop mono-complete mono-reference-assemblies-2.0 mono-reference-assemblies-3.5 mono-complete mono-devel gnome-sharp2 gtk-sharp2 npm libgconf2-4

Installing all those packages (using Terminal), monodevelop is installed as /usr/bin/monodevelop
I’m using Ubuntu 18.04 - hope that helps.