Saturday, April 27, 2024
39
rated 0 times [  39] [ 0]  / answers: 1 / hits: 121840  / 1 Year ago, mon, march 20, 2023, 1:55:23

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"


More From » command-line

 Answers
7

I finally found answer myself.
To put all ubuntu sources to work without clicking them just enter in terminal



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


So for just "Universe" would be



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


You can then check in Software sources it will show it works now.
You can delete manually from sudo gedit /etc/apt/sources.list line http://archive.ubuntu.com/ubuntu lucid main universe restricted multiverse and save and see in Software sources nothing is ticked. Then do



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


& that makes Just universe ticked.
For all enabled do



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"


$(lsb_release -sc) makes checking your Ubuntu version and putting its name in link. Since 10.04 is called lucid then you can test in terminal lsb_release -sc gives word lucid 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


[#42115] Monday, March 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gavgenerati

Total Points: 120
Total Questions: 126
Total Answers: 119

Location: Marshall Islands
Member since Wed, Feb 9, 2022
2 Years ago
gavgenerati questions
Wed, Jun 22, 22, 17:24, 2 Years ago
Fri, Jul 30, 21, 04:32, 3 Years ago
Fri, Jan 14, 22, 14:20, 2 Years ago
Tue, Jul 27, 21, 19:05, 3 Years ago
;