How do you use terminal to enable Universe source?
Or any those 4 from Software Sources: Main, Universe, Restricted, Multiverse
Main is on by default and Restricted is on if durring Ubuntu installation i tick Enable Restricted Formats.
Answer with line where version checked so it auto detects it.
Like command I know for partner but that goes to Other Software tab sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
Ubuntu – How to enable the “Universe” repository from the command line?
command linepackage-managementsoftware-sources
Related Question
- Ubuntu – Apt-Get Update: failure to fetch; can’t connect to any sources
- Ubuntu – Why is there a minus sign instead of a check mark in the software sources configuration window
- Ubuntu – Packages are not available for installation
- Ubuntu – How to list all installed packages from a specific category (component)
Best Answer
I finally found answer myself. To put all ubuntu sources to work without clicking them just enter in terminal
So for just "Universe" would be
You can then check in Software sources it will show it works now. You can delete manually from
sudo gedit /etc/apt/sources.list
linehttp://archive.ubuntu.com/ubuntu lucid main universe restricted multiverse
and save and see in Software sources nothing is ticked. Then do& that makes Just universe ticked. For all enabled do
you can add also
partner
repository with different link (see difference is ubuntu to canonical)$(lsb_release -sc)
makes checking your Ubuntu version and putting its name in link. Since 10.04 is calledlucid
then you can test in terminallsb_release -sc
gives wordlucid
Thats makes added repository link precise name of your ubuntu Release in Software sources. Wrong word and noting will work.for all differences in repositories read https://help.ubuntu.com/community/Repositories/Ubuntu