How do I enable the "multiverse" repository?

Another option available for newer releases of Ubuntu:

sudo apt-add-repository multiverse && sudo apt-get update

From the man page:

Examples:
  apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
  apt-add-repository 'http://myserver/path/to/repo myrepo'
  apt-add-repository 'https://packages.medibuntu.org free non-free'
  apt-add-repository http://extras.ubuntu.com/ubuntu
  apt-add-repository ppa:user/repository
  apt-add-repository multiverse

The Multiverse repository contains packages (software) that is "not free" , referring to licensing restrictions.

The Multiverse repository contains software which has been classified as non-free. This software may not be permitted in some jurisdictions. When installing each package from this repository, you should verify that the laws of your country permit you to use it. Also, this software may not include security updates.

For additional information on the philosophy of the ubuntu repositories, see Overview of the default Ubuntu software repositories

You can enable the repository from the command line or graphically.

Graphically

Open Software center, navigate to the "Ubuntu software" tab at the top, select (check off) multiverse.

Software Center

Use the "Reload" button to update your package list.

Reload

Note: This is called "Software and Updates" in recent versions (e.g. 20.10) of Ubuntu.

new image (Image credits)

Command line

Open /etc/apt/sources.list with any editor.

# command line editor (nano)
sudo -e /etc/apt/sources.list

# graphical editor
gksu gedit /etc/apt/sources.list

Uncomment (remove the # from the front of) the multiverse lines or add them in if needed, so the lines look like this:

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

Uncomment the deb-src lines if you need to download the source code (most users will not need the source code, so if in doubt, leave them disabled).

Save your edit (if you are using nano, Ctrl+X , then type Y to save your changes) then, to update your package list, run

sudo apt-get update
  • For additional information on managing your repositories, see Ubuntu Wiki - Repositories

From the command line without using a text editor or GUI:

sudo sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list

http://alestic.com/2012/05/aws-command-line-packages