Seemingly unable to install older version of Mono. Why/How?

Posted August 28, 2020 778 views
Ubuntu 20.04

I’m attempting to install an older version of mono with Ubuntu 20.04 as the application I’d like to host is not yet C# 7.0 compliant. I’ve followed dozens of tutorials with constant droplet rebuilds and I’m at my wit’s end with this.

Using the steps provided at mono-project[dot]com/download, I changed the repo link from the standard stable-focal main to wheezy/snapshots/ main and that appears to work as I’ve confirmed that the link saved in /etc/apt/sources.list.d/mono-official-stable.list is correct.

The moment I run sudo apt install mono-complete however, something pushes the latest version of Mono instead. A coworker tested this briefly with Lightsail and had no issues so this appears to be something with Digital Ocean specifically.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @orbitstorm88,

Once you make the change to the repository list, you need to run sudo apt update and then run the sudo apt install mono-complete.

Let me know how it goes.