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
  • 66,947
  • 30
  • 177
  • 264
Ivan
  • 55,987
  • 65
  • 150
  • 212

3 Answers3

29

Try this

sudo apt-get install mono-complete

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
karthick87
  • 80,647
  • 59
  • 193
  • 232
8

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

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
João Pinto
  • 17,029
  • 5
  • 55
  • 68
8

You can install only mono runtime. Try this:

sudo apt-get install mono-runtime
Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
Max Knap
  • 81
  • 1
  • 1
  • 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