How do I enable the "multiverse" repository?

305,682

Solution 1

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

Solution 2

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

Solution 3

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

Share:
305,682

Related videos on Youtube

Jorge Castro
Author by

Jorge Castro

Updated on September 18, 2022

Comments

  • Jorge Castro
    Jorge Castro over 1 year

    I keep seeing places refer to the "multiverse" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.

  • Brent Faust
    Brent Faust almost 10 years
    Excellent. And, it's idempotent. Note, however, that it's aggressive -- all deb multiverse repos will be added, even those that are for building from src. To leave those out, add a space after "deb", so we have sudo sed -i "/^# deb .* multiverse$/ s/^# //" /etc/apt/sources.list; sudo apt-get update
  • Meetai.com
    Meetai.com over 9 years
    If the lines aren't present on that file, copy the existing ones from universe and replace the word 'universe' by 'multiverse'
  • Guss
    Guss almost 9 years
    At least in recent versions of Ubuntu, the multiverse source lines are not present in the sources.list file, only the multiverse security repo will be enabled by this command.
  • kiri
    kiri almost 9 years
    Can someone update the screenshots, please? Thanks.
  • Panther
    Panther almost 9 years
    @minerz029 - there are already screenshots posted. See also help.ubuntu.com/community/Repositories/Ubuntu
  • kiri
    kiri almost 9 years
    @bodhi.zazen - update <-. The screenshots are reflective of a outdated version of Ubuntu. I'm asking to have them updated with screenshots from a newer version.
  • jfs
    jfs over 8 years
    You could use sed, to uncomment lines that end with multiverse: sudo sed -i '/^#.*multiverse$/s/^# //g' /etc/apt/sources.list
  • Evan Carroll
    Evan Carroll about 8 years
    Downvoted because the answer with sudo apt-add-repository multiverse is so much nicer and more modern.
  • 0xC0000022L
    0xC0000022L over 7 years
    ... which requires some package that is not installed by default.
  • Milean
    Milean over 5 years
    This was a rat-race, waste of time. See below answer "sudo apt-add-repository multiverse"