How-to SetUp Mono Apt Repo for Ubuntu Linux

Adding Mono Apt Repo for Ubuntu

The Tip Show How-to Add the Mono Apt Repository for Ubuntu GNU/Linux.

Mono is a Microsoft sponsored and Open Source implementation of Microsoft’s .NET Framework based on the ECMA standards for C# and the Common Language Runtime.

Finally, this Guide is Valid for All the Ubuntu Based Distros like:

  • Linux Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Pop_OS!
  • Voyager
  • Trisquel
  • LXLE
  • feren OS
  • Peppermint
  • Q4OS
  • Linux Ultimate Edition
Enable Apt Mono Ubuntu - Rocket Launcher
  1. How-to Quick-Start with Command Line on Ubuntu:

    Console Ubuntu QuickStart Guide

    First Update the Apt Repo Sources with:

    sudo apt update

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.

  2. Installing Requirements
    Simply play:

    sudo apt install gnupg ca-certificates apt-transport-https
  3. Adding GPG Key
    Run:

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \
    3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    
  4. Enabling the Mono Stable Apt Repository

    • 20.04+ Ubuntu Setup
      Valid also for Mint 20.x, Zorin OS 16, Bodhi 6.x, Lite 5…

      echo "deb http://download.mono-project.com/repo/ubuntu stable-focal main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 18.04 Ubuntu Setup
      Valid also for Mint 19.x, Zorin OS 15, Elementary OS 5.x, Bodhi 5.x, Lite 4…

      echo "deb http://download.mono-project.com/repo/ubuntu stable-bionic main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 16.04 Ubuntu Setup
      Valid also for Mint 18.x, Zorin OS 12, Elementary OS 0.4, Bodhi 4.x, Lite 3…

      echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 14.04 Ubuntu Setup

      echo "deb http://download.mono-project.com/repo/ubuntu stable-trusty main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 12.04 Ubuntu Setup

      echo "deb http://download.mono-project.com/repo/ubuntu precise main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
  5. Refreshing Apt Repositories

    sudo apt update