How-to Add Mono Repository for Linux Mint

Adding Mono Apt Repo for Linux Mint

The Tip Show How-to Add the Mono Apt Repository for Linux Mint 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.

Enable Apt Mono Linux Mint - Rocket Launcher
  1. How-to Quick-Start with Command Line on Linux Mint:

    Console Linux Mint 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.x Linux Mint Setup

      echo "deb http://download.mono-project.com/repo/ubuntu stable-focal main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 19.x Linux Mint Setup

      echo "deb http://download.mono-project.com/repo/ubuntu stable-bionic main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 18.x Linux Mint Setup

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

      echo "deb http://download.mono-project.com/repo/ubuntu stable-trusty main" | \
      sudo tee /etc/apt/sources.list.d/mono-official.list
      
    • 13, 14, 15 & 16 Linux Mint 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