26

I'd like to be able to build and run C# programs on my Ubuntu 10.10 server. How do I install Mono? "sudo apt-get install mono" doesn't work, says "Package mono is not available, but is referred to by another package".

Braiam
  • 69,302
Ivan
  • 58,865

3 Answers3

29

Try this

sudo apt-get install mono-complete

Jorge Castro
  • 73,907
karthick87
  • 84,713
8

The mono compiler package is mono-gmcs, if you need the entire mono stack, install the package mono-complete .

Jorge Castro
  • 73,907
João Pinto
  • 17,343
8

You can install only mono runtime. Try this:

sudo apt-get install mono-runtime
Jorge Castro
  • 73,907
  • This might not be enough, though. My installation was missing necessary .dlls with this. For more information, see https://stackoverflow.com/questions/10490155/unable-to-run-net-app-with-mono-mscorlib-dll-not-found-version-mismatch – Zero3 Nov 28 '15 at 01:18