Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I get to Universe Repository of Ubuntu software as mentioned in Ubuntu 12.04 LTS? I am installing 12.04 Ubuntu. Please help.

share|improve this question
    
Do you want to enable the universe and multiverse repositories in Ubuntu? – Mitch Jun 9 '12 at 16:57

If you want in one command and not use Software source ticking then in terminal put:

sudo add-apt-repository universe

On older versions of Ubuntu, you might have to use a full source line:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

To enable all Ubuntu software (main universe restricted multiverse) repositories use

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"

you can add also partner repository with different link (see difference is ubuntu to canonical)

sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"

Then update the package list:

sudo apt-get update

p.s.

$(lsb_release -sc) checks your Ubuntu version and puts its name in the source link. Since 12.04 is called precise, you can test in a terminal that lsb_release -sc gives precise. That adds the precise name of your Ubuntu release in Software sources. Wrong word and nothing will work.

For all differences in repositories read https://help.ubuntu.com/community/Repositories/Ubuntu

share|improve this answer
1  
Just a note that you may have to run sudo apt-get update before you can install the package you wanted. – ty01 Nov 21 '13 at 19:17

First, open software center. Click on 'edit' and then 'software sources' to open the software sources window. Once that is open, check the box that says, "Community-maintained free and open-source software (universe)."

enter image description here

Now, all the universe packages should show up in software center just like all the other ones.

More information:

share|improve this answer

Command Line Way of enabling Ubuntu software Repositories For 12.10 and above:

To enable main repository,

sudo add-apt-repository main

To enable universe repository,

sudo add-apt-repository universe

To enable multiverse repository,

sudo add-apt-repository multiverse

To enable restricted repository,

sudo add-apt-repository restricted

NOTE:

After enabling the repositories, don't forget to update it.Run the below command to update the repositories,

sudo apt-get update
share|improve this answer
1  
what's the difference between your answer and kangaroo's answer, yours seems shorter, and simpler. – speedox Jun 19 '15 at 1:31
3  
Because my answer won't work for the versions below 12.10 – Avinash Raj Jun 19 '15 at 5:02
    
Is there also a way to check them first? So you only enable them when they aren't enabled already... For scripting purposes. – user2304170 yesterday

Open dash and type Software sources

type <code>software sources</code> in Dash

then open software sources and click on the the universe repository .

select "Community maintained Open Source Software (universe)"

Close and reload cache

reload cache

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.