Here's how to get Godot with C# to work on Ubuntu 18.04 (Bionic).
First, we have to get the right version of Mono.
As we can see from the Godot downloads page:
Godot will only work with Mono SDK 5.12.0 only (as of this writing). We can't install the current/latest version of Mono right away, because Godot won't work with that. We have to get the old
5.12.0 snapshot of Mono for Ubuntu.
To do this, the Standard Ubuntu Installation Instructions for Mono have to be tweaked to this:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.12.0 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
bionic/snapshots/5.12.0 part in that line - that's how we will force the 5.12.0 snapshot of Mono to install.
Run the above commands in a terminal.
You will probably see a warning like this:
Reading package lists... Done
W: Conflicting distribution: https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.12.0 InRelease (expected bionic/snapshots/5.12.0 but got bionic)
Ignore that, it's just a harmless warning and not an error.
Confirm that your
/etc/apt/sources.list.d/mono-official-stable.list file looks exactly like this:
deb https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.12.0 main
You are now ready to install Mono with apt like this:
sudo apt install -y mono-devel
Once the install has completed, confirm the version of Mono by running
mono --version. You should see something similar to:
Mono JIT compiler version 126.96.36.1991 (tarball Wed Jul 25 15:43:48 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
Now download the Mono version of Godot from the Godot Downloads page, and run the executable (
Godot_v3.0.6-stable_mono_x11.64 in my case).
mono in the version, somewhere in the top right corner of the Godot editor:
Congrats. You have successfully installed Godot with Mono on Ubuntu.