How to Enable the Universe Repository in Ubuntu

How to Enable the Universe Repository in Ubuntu

When APT cannot find a package you expect to install, its enabled sources may not include the Ubuntu component that contains it. The Universe repository is an Ubuntu archive component for community-maintained free and open-source software.

This article shows how to enable Universe from the terminal or Ubuntu Desktop, then refresh APT’s package indexes.

TL;DR: Enable Universe in Ubuntu

Run the repository helper, then refresh the package indexes APT uses.

  • Universe is an Ubuntu archive component for community-maintained free and open-source software.
  • On Ubuntu Desktop, select the Universe option in Software & Updates, close the window and reload package information.
  • Do not copy old Ubuntu 21.10 source lines into a current installation.

What Is the Universe Repository in Ubuntu?

Universe is one of Ubuntu’s archive components. It contains free and open-source software maintained by the community, while Main contains free and open-source software supported by Canonical.

APT reads the software sources configured on the system and downloads package indexes from them. Enabling Universe makes that component available as a source, while the update command fetches the index that package searches and installs rely on.

A repository is a software archive that publishes packages and metadata for a particular Ubuntu release. A component is a subdivision of that archive. Universe is separate from Main, Restricted and Multiverse, so enabling it does not turn on every other component or add an unrelated vendor repository.

The distinction matters when a package is absent from the enabled sources. A package can be part of Ubuntu’s archive yet remain unavailable to APT if its component is not enabled or the local package index has not been refreshed. Adding the component and fetching its index address those two separate conditions.

Universe software is community-maintained. That label describes who maintains the packages in the component, not a separate download site you should add manually. Keep the configured Ubuntu archive and its release suite intact, and enable the component through Ubuntu’s repository tooling.

Ubuntu’s archive groups software by both support responsibility and licensing. Main contains Canonical-supported free and open-source software. Restricted covers some proprietary hardware drivers, while Multiverse contains software with legal or licensing restrictions.

Those labels describe different parts of the archive, and enabling Universe does not require switching on all four. The practical result is a larger set of packages APT can discover from Ubuntu’s archive.

Enabling the component does not install software by itself. You still choose a package and install it separately, after the package index has been refreshed.

How to Enable the Universe Repository in Ubuntu

Use the terminal helper on Ubuntu Desktop or Server, or select the component in the desktop source manager. Either way, refresh the package information after the change.

Step 1: Enable Universe from the terminal

The add-apt-repository helper accepts repository components as a shortcut. Run this command in a terminal to enable Universe for the configured Ubuntu archive sources:

sudo add-apt-repository universe

Enter your password if prompted. The command changes APT’s source configuration, so it needs administrator access. Ubuntu’s manual describes the helper as adding or removing sources and recognizes a component name as valid input.

The command is preferable to copying an old repository line because the helper works with the current configured sources rather than asking you to guess an archive mirror or suite codename. A suite identifies the Ubuntu release pocket in an APT source. A line copied from another release can point APT at the wrong package set.

If the helper asks whether to continue, read the proposed change before confirming it. The action should enable the Ubuntu Universe component. Do not accept a prompt that proposes an unfamiliar third-party source when your task is only to enable Universe.

Step 2: Refresh APT’s package indexes

APT does not use a changed source’s package list until it downloads the current indexes. Run:

sudo apt update

Let the command finish and check its output for errors. This refreshes package metadata, it does not upgrade installed software. To install a package afterward, use its package name with the apt install command.

During this refresh, APT contacts the configured archive mirrors and downloads index metadata for the enabled sources. A successful completion means APT was able to read those sources and update its local lists. It does not prove that every package exists for every Ubuntu release or architecture.

If the update reports a network, DNS or mirror error, fix that connection or mirror issue and run the update again. If it reports a signature or release-file error, do not bypass signature checks. Confirm that the source points to an Ubuntu archive and uses the codename for the installed release.

Step 3: Enable Universe in the desktop settings

On Ubuntu Desktop, open Software & Updates and find the Ubuntu Software tab. Select the checkbox for community-maintained free and open-source software, then close the window and accept the prompt to reload package information.

The Ubuntu repository guide describes this save-and-reload sequence. Labels can vary across desktop releases, so look for the Universe or community-maintained software component rather than following an old screenshot pixel for pixel.

Close applies the selection, while Reload fetches the package information for the changed source. If the settings window offers a revert option before you close it, that cancels the pending selection instead of applying it. Once the reload has completed, APT’s local package lists reflect the enabled component.

The graphical method and the terminal method change the same kind of repository configuration. Choose the desktop control when you prefer to inspect the component list visually. Choose the helper when you are working over SSH or on Ubuntu Server, where the desktop settings application may not be installed.

If the desktop interface lists download servers as well as components, leave the server selection unchanged unless you are specifically fixing a mirror problem. The Universe checkbox controls the archive component. Changing mirrors is a separate setting and is not needed just to enable that component.

Common Errors When Enabling Universe

If a package search returns nothing or installation reports “Unable to locate package,” check the source, package name and index refresh before editing APT files.

SymptomWhat to check
Repository shortcut errorConfirm the command is exactly sudo add-apt-repository universe and that the helper is available on the installation.
Package still cannot be foundRun sudo apt update, check the package spelling and confirm the package exists for your Ubuntu release.
Source file looks differentAPT supports traditional .list files and deb822 .sources files. Do not add a duplicate source line just because there is no old-style entry.
Ubuntu 21.10 instructions do not matchUbuntu 21.10 is an old, unsupported release. Do not reuse its Hirsute suite names on a supported release.

APT’s source format documentation explains both file styles and the index refresh. If the helper command itself is missing, use the package manager’s documented installation path for your Ubuntu release rather than copying a repository line from an unrelated guide.

Check that the package belongs to your release

Ubuntu archives are organized by release and architecture as well as component. A package available in Universe for one release may have a different name, may not be built for another architecture or may not be present in an older release. Search the package catalog for the exact Ubuntu release before changing the repository configuration again.

Also distinguish a missing package from a missing source. A spelling mistake, a package renamed upstream or a package that is not part of Ubuntu’s archive can produce the same “Unable to locate package” message. Enabling Universe only helps when the package is actually published in that component for the installed release.

Avoid manual edits to old source lines

Older walkthroughs may show lines with a mirror URL followed by a suite name such as Hirsute. That codename refers to Ubuntu 21.04, not Ubuntu 21.10, whose codename was Impish Indri. Neither suite name belongs in instructions for a current release.

Ubuntu 21.10 itself is end-of-life, so installing software from its old archives is not a way to make a supported system current. Follow the upgrade guidance for that release instead of pointing a newer system at its archives.

APT reads one-line entries in files ending in .list and deb822 stanzas in files ending in .sources. A deb822 source lists components in a Components field, while a one-line entry places components after the suite.

The two formats are not interchangeable character for character. Let the Ubuntu helper manage the component unless you have a specific reason to maintain source files by hand.

If a shortcut error persists after checking the command, inspect whether the helper exists and whether the system is actually Ubuntu or an Ubuntu derivative with different repository tooling. The Ubuntu manual lists software-properties-common as the package that provides add-apt-repository. Do not install a package from an unrelated source to repair the helper.

For more help, see our guides to removing an APT repository, restoring Ubuntu’s default repositories, searching for a package with apt, fixing “Unable to locate package” and the Ubuntu package manager.

Conclusion: Refresh APT After Enabling Universe

Enable the Universe component with the repository helper or Ubuntu Desktop’s source settings, then refresh the package indexes. The refresh makes the newly enabled component’s package information available to APT.

For exact source syntax, consult Ubuntu’s add-apt-repository manual and APT sources.list manual.

Frequently Asked Questions

What is the Universe repository in Ubuntu?

Universe is an Ubuntu archive component containing community-maintained free and open-source software.

How do I enable Universe from the terminal?

Run sudo add-apt-repository universe, then run sudo apt update to download the package indexes.

Does enabling Universe upgrade Ubuntu packages?

No. Enabling the component changes available software sources, and apt update refreshes package indexes. Neither command upgrades installed packages.