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:
- Open Ubuntu's
ubuntu.sourcesfile in your text editor.Enabling Universe lets APT select its packages for future installs and upgrades. Editing the Ubuntu archive sources requires
sudoaccess.$ sudoedit /etc/apt/sources.list.d/ubuntu.sources
- Enable
universeby adding it at the end of each Ubuntu archiveComponents:line that lacks it.The Ubuntu archive entries include the security entry, whose suite ends in
-security. A line that containsmain restricted multiversebecomes the line shown.Components: main restricted multiverse universe
- Save the file.
- Close the editor.
sudoeditcopies the saved edit back to the system file when the editor closes. - Refresh APT's package lists to include Universe.
$ sudo apt update --error-on=any
The
--error-on=anyoption makes the refresh fail on download errors. If APT reports a syntax error inubuntu.sources, restore the originalComponents:lines before trying the edit again. - Check the APT candidate for your package, replacing
ripgrepwith 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 PackagesA version number beside
Candidate:and a source such asresolute/universeunder 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.