How to enable/disable Universe, Multiverse and Restricted repository on Ubuntu 20.04 LTS Focal Fossa

In this tutorial you will learn how to enable or disable Universe, Multiverse and Restricted repository on Ubuntu 20.04 LTS Focal Fossa Linux Desktop or Server.

In this tutorial you will learn:

  • How to enable Universe, Multiverse and Restricted
  • How to disable Universe, Multiverse and Restricted
  • How to check for enabled repositories

Enabled  Universe,Multiverse and Restricted repository on Ubuntu 20.04 LTS Focal Fossa

Enabled Universe, Multiverse and Restricted repository on Ubuntu 20.04 LTS Focal Fossa

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Enable Universe, Multiverse and Restricted repository on Ubuntu 20.04 step by step instructions

Enable repositories from command line

  1. The easiest way to enable Ubuntu Universe, Multiverse and Restricted repositories is to use the add-apt-repository command. The following commands will enable all repositories:
    $ sudo add-apt-repository universe
    $ sudo add-apt-repository multiverse
    $ sudo add-apt-repository restricted
    
  2. Check for enabled repositories:
    $ grep ^deb /etc/apt/sources.list
    
  3. To disable the repository enter:
    $ sudo add-apt-repository --remove universe
    $ sudo add-apt-repository --remove multiverse
    $ sudo add-apt-repository --remove restricted
    


Enable repositories from GUI GNOME desktop

  1. start software and updates

    Use Activities menu and search for software. Click on Software & Updates icon.

  2. Tick any desired repository to enable it

    Tick any desired repository to enable it and hit Close button.