Ubuntu's software archive groups packages into components according to how they are maintained. Enabling the Universe component in APT makes community-maintained packages available for installation. Ubuntu 24.04 LTS and later use the deb822 file /etc/apt/sources.list.d/ubuntu.sources for the default Ubuntu archive entries.

The archive and security updates can have separate entries, each with its own list of components. On Ubuntu 22.04 LTS, add universe beside main in /etc/apt/sources.list for each official archive suite missing the component.

Security fixes for Universe packages come from the community under standard Ubuntu support. Ubuntu Pro provides additional security coverage for Universe through its ESM Apps service on LTS releases.

Steps to enable the Universe repository on Ubuntu:

  1. Open Ubuntu's ubuntu.sources file in your text editor.

    Enabling Universe lets APT select its packages for future installs and upgrades. Editing the Ubuntu archive sources requires sudo access.

    $ sudoedit /etc/apt/sources.list.d/ubuntu.sources
  2. Enable universe by adding it at the end of each Ubuntu archive Components: line that lacks it.

    The Ubuntu archive entries include the security entry, whose suite ends in -security. A line that contains main restricted multiverse becomes the line shown.

    Components: main restricted multiverse universe
  3. Save the file.
  4. Close the editor.

    sudoedit copies the saved edit back to the system file when the editor closes.

  5. Refresh APT's package lists to include Universe.
    $ sudo apt update --error-on=any

    The --error-on=any option makes the refresh fail on download errors. If APT reports a syntax error in ubuntu.sources, restore the original Components: lines before trying the edit again.

  6. Check the APT candidate for your package, replacing ripgrep with the package name you need.
    $ apt policy ripgrep
    ripgrep:
      Installed: (none)
      Candidate: 15.1.0-1ubuntu1
      Version table:
         15.1.0-1ubuntu1 500
            500 http://archive.ubuntu.com/ubuntu resolute/universe amd64 Packages

    A version number beside Candidate: and a source such as resolute/universe under that version confirm that APT can select the package from Universe. If there is no candidate after a successful refresh, check the exact package name and its availability for your Ubuntu release and architecture.

Share this guide