• About Us
    • Contact Us
    • Write for US
  • Terms
    • Newsletter
    • Affiliate Link Policy
    • DMCA
  • Privacy
  • Forums
    • African History
    • African Walk of Fame
  • Nyosake Ltd
    • Car Head
    • Business Today
    • Android News
    • Afrobays
    • The Sun
    • NS Sports
    • PodCast
    • Gadget
    • Travel
    • Play IT
    • Invest News
    • Start A Blog Easily Here
  • Advertise
Tuesday, July 5, 2022
Nyongesa Sande
  • News
    • Africa
    • African Inventions
    • African History
    • Qatar
    • Politics
    • Counties
    • National
    • Health
  • How To
    • Made In Africa
    • Education
    • Facts
    • Science
  • Business
    • Sponsored
    • Real Estate
    • World Billionaires
    • Wealth
    • Advertisement
  • Apple
    • iPad
    • Artists
    • iPhone
    • Apple Watch
    • Mac Specs
    • Apple TV
  • Windows
    • Windows 10
    • Surface
    • PC Components
    • Laptops
    • ChromeBooks
  • Tech
    • Tech Terms
    • Phones
    • Phone Rumors
    • Android News
    • Top Deals
    • Gadget Reviews
    • Gift Guides
    • VPN
  • Autos
    • Car Showrooms
    • Car News
    • Latest Cars
    • Auto Sport
    • Car Facts
  • Top 100
  • Sports
    • Soccer LiveScores
    • Basketball Scores
  • Entertainment
    • Celebrities
    • Lyrics
    • Artists
    • Biography
  • HSE
    • Hazards
    • NEBOSH
    • IOSH
    • Construction Safety
    • General Industry
    • Oil & Gas Safety
    • All Safety Courses
  • Forums
No Result
View All Result
  • News
    • Africa
    • African Inventions
    • African History
    • Qatar
    • Politics
    • Counties
    • National
    • Health
  • How To
    • Made In Africa
    • Education
    • Facts
    • Science
  • Business
    • Sponsored
    • Real Estate
    • World Billionaires
    • Wealth
    • Advertisement
  • Apple
    • iPad
    • Artists
    • iPhone
    • Apple Watch
    • Mac Specs
    • Apple TV
  • Windows
    • Windows 10
    • Surface
    • PC Components
    • Laptops
    • ChromeBooks
  • Tech
    • Tech Terms
    • Phones
    • Phone Rumors
    • Android News
    • Top Deals
    • Gadget Reviews
    • Gift Guides
    • VPN
  • Autos
    • Car Showrooms
    • Car News
    • Latest Cars
    • Auto Sport
    • Car Facts
  • Top 100
  • Sports
    • Soccer LiveScores
    • Basketball Scores
  • Entertainment
    • Celebrities
    • Lyrics
    • Artists
    • Biography
  • HSE
    • Hazards
    • NEBOSH
    • IOSH
    • Construction Safety
    • General Industry
    • Oil & Gas Safety
    • All Safety Courses
  • Forums
No Result
View All Result
No Result
View All Result

How to Update Ubuntu Repository list using Software Sources GUI Tool

June 16, 2021
in General News
Reading Time: 10 mins read
A A
ShareTweetShareShareScanEmail
ADVERTISEMENT

This is a guide on How to Update Ubuntu Repository list using Software Sources GUI Tool Ubuntu’s software package installation uses a list of repositories that house the various updates and software that you can install. By default, the repository list doesn’t include a lot of the 3rd party tools that you might want to install.

Most of the instructions for adding extra repositories tell you how to use the command line tool, but for new Ubuntu users, a GUI tool is probably more useful.

Ubuntu Edgy includes a software tool that lets you manage these repositories easily. You can find the tool on the System \ Administration \ Software Sources menu.

When you launch the tool, you’ll be presented with a dialog that allows you to easily check the boxes, or even change your download location from the default of US repositories:

For most publicly available software, you’ll want to enable the universe repository. If you navigate to the other tabs you can also choose how often the automatic updates feature checks for new updates.

IconsPage/terminal.png This page describes how to manage software repositories from the command line. (GUI tools are also available: Managing Repositories in Ubuntu or Kubuntu).

ADVERTISEMENT

IconsPage/important.png If you are using a minimal install or server install you will need to be familiar with a terminal based text editor like nano. If you are using a GUI install you can use Nano or GEdit.

The Basics

Ubuntu uses apt for package management. Apt stores a list of repositories or software channels in the file

ADVERTISEMENT
/etc/apt/sources.list

and in any file with the suffix .list under the directory

/etc/apt/sources.list.d/

See man sources.list for more about this storage mechanism.

By editing these files from the command line, we can add, remove, or temporarily disable software repositories.

  • IconsPage/note.png Note: It’s always a good idea to backup a configuration file like sources.list before you edit it. To do so, issue the following command:

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup


Typically, the beginning of the file /etc/apt/sources.list looks like this:

# sources.list
#deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)]/ saucy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted
#...

Explanation of the Repository Format

  • All the lines beginning with one or two hashes (#) are comments, for information only.
  • The lines without hashes are apt repository lines. Here’s what they say:

    • deb: These repositories contain binaries or precompiled packages. These repositories are required for most users.

    • deb-src: These repositories contain the source code of the packages. Useful for developers.

    • http://archive.ubuntu.com/ubuntu: The URI (Uniform Resource Identifier), in this case a location on the internet. See the official mirror list or the self-maintained mirror list to find other mirrors.

    • saucy is the release name or version of your distribution.

    • main & restricted are the section names or components. There can be several section names, separated by spaces. Update Ubuntu Repository list

Other Versions

  • IconsPage/note.png For other Ubuntu releases you would replace the ‘saucy’ with the current version you have installed (‘precise’, ‘quantal’, ‘raring’, ‘saucy’, ‘trusty’, …) Type lsb_release -sc to find out your release.

Adding Repositories

Adding the Universe and Multiverse Repositories

Additional software repositories such as Universe and Multiverse can be enabled by uncommenting the corresponding apt lines (i.e. delete the ‘#’ at the beginning of the line). For Universe, uncomment those lines:

  • deb http://us.archive.ubuntu.com/ubuntu/ saucy universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ saucy universe
    deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe

There are four similar lines for ‘multiverse’.

OR you may use the add-apt-repository command. If your release is ‘saucy’:

  • sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ saucy universe multiverse"
    sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe multiverse"

IconsPage/note.png Depending on your location, you should replace ‘us.’ by another country code, referring to a mirror server in your region. Check sources.list to see what is used!

Type lsb_release -sc to find out your release. You may repeat the commands with “deb-src” instead of “deb” in order to install the source files. Update Ubuntu Repository list

Don’t forget to retrieve the updated package lists:

  • sudo apt-get update

Adding Partner Repositories

You can add the partner repositories by uncommenting the following lines in your /etc/apt/sources.list file:

  • deb http://archive.canonical.com/ubuntu saucy partner
    deb-src http://archive.canonical.com/ubuntu saucy partner

Then update as before:

  • sudo apt-get update

    IconsPage/important.png Be aware that the software contained within this repository is NOT open source.

Adding Other Repositories

There are some reasons for which you might want to add non-Ubuntu repositories to your list of software sources. Caution: To avoid trouble with your sytem, only add repositories that are trustworthy and that are known to work on Ubuntu systems!

 

ADVERTISEMENT
  • You can add custom software repositories by adding the apt repository line of your software source to the end of the sources.list file. It should look something like this:

    deb http://mirror3.ubuntulinux.nl/ hardy-seveas freenx
  • Don’t forget to make apt aware of your changes:
    sudo apt-get update

Adding Launchpad PPA Repositories

Adding Launchpad PPA (Personal Package Archive) is possible conveniently via the command: add-apt-repository. This command is similar to “addrepo” on Debian.

  • The command updates your sources.list file or adds/edits files under sources.list.d/. Type man add-apt-repository for detailed help.

  • If a public key is required and available it is automatically downloaded and registered.
  • Should be installed by default. On older or minimal Ubuntu releases, you may have to install software-properties-common and/or python-software-properties first (sudo apt-get install python-software-properties) Update Ubuntu Repository list

    sudo add-apt-repository ppa:<repository-name>

    Example: sudo add-apt-repository ppa:nhandler/ppa

 

Enabling Repositories with a (non-interactive) Script

IconsPage/note.png This section seemed obsolete due to the add-apt-repository command, thus it has been removed.

Suggestions & Recommendations

  • It is always a good idea to back up configuration files like /etc/apt/sources.list before you begin editing. You can then revert your changes if needed.

  • If you decide to add other repositories to sources.list, make sure that the repository is meant to work (and known to work) with Ubuntu. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install. Also, make sure that you really need to add external repositories as the software package(s) you are looking for may already have been introduced into the official repositories!

  • Please keep in mind that it may not be legal (typically because of export restrictions) to enable some non-Ubuntu software repositories in some countries.

  • You may be asked enter a security key when adding a non-Ubuntu repository to your sources. See Managing Authentication Keys for instructions.

  • Remember to retrieve updated package lists by issuing a sudo apt-get update when you’re done editing sources.list.

Tested on: Ubuntu Edgy Eft

Was this article helpful?
YesNo
ShareTweetSendShareScanSend
ADVERTISEMENT
Previous Post

How to Disable Power Management on Windows 7 or Vista

Next Post

How to Share folders with your Ubuntu Virtual Machine (guest)

Related Posts

Nairobi Half Life

Nairobi Half Life Veteran actor Olwenya Maina dies

9 hours ago
Yetu Microfinance bank

Yetu Microfinance bank

17 hours ago
Next Post
How to Display available memory on Linux / Ubuntu

How to Share folders with your Ubuntu Virtual Machine (guest)

Blocking Spam from International Senders in Windows Vista Mail

Blocking Spam from International Senders in Windows Vista Mail

Search NyongesaSande.com

Follow Nyongesa Sande


Follow @nyongesasande

Subscribe to Nyongesa Sande

Editorial policy

Permission to use quotations from any article is granted subject to appropriate credit of the source being given by referencing the direct link of the article on Nyongesa Sande. However, reproducing any content on this site without explicit permission is strictly prohibited.

Follow us on Social Media channels Below:

  Twitter   Instagram     Youtube  Facebook 
Make sure to check out our social media to keep track of the latest content.
Disclaimer: We aim to present the most accurate information possible. Through this website, you might link to other websites which are not under our control. We have no control over the nature, content and availability of those websites. Inclusion of any links does not necessarily imply a recommendation or endorsement of the views expressed within them. All content on this website is copyright to the website’s owner and all rights are reserved. We take no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control.
 
ADVERTISEMENT
Facebook Twitter Instagram Pinterest LinkedIn Youtube RSS

Categories

A BAKE Member

© 2022 Nyongesa Sande - So Much More To Read Now. A Nyosake Investment Inc.

No Result
View All Result
  • News
    • Africa
    • African Inventions
    • African History
    • Qatar
    • Politics
    • Counties
    • National
    • Health
  • How To
    • Made In Africa
    • Education
    • Facts
    • Science
  • Business
    • Sponsored
    • Real Estate
    • World Billionaires
    • Wealth
    • Advertisement
  • Apple
    • iPad
    • Artists
    • iPhone
    • Apple Watch
    • Mac Specs
    • Apple TV
  • Windows
    • Windows 10
    • Surface
    • PC Components
    • Laptops
    • ChromeBooks
  • Tech
    • Tech Terms
    • Phones
    • Phone Rumors
    • Android News
    • Top Deals
    • Gadget Reviews
    • Gift Guides
    • VPN
  • Autos
    • Car Showrooms
    • Car News
    • Latest Cars
    • Auto Sport
    • Car Facts
  • Top 100
  • Sports
    • Soccer LiveScores
    • Basketball Scores
  • Entertainment
    • Celebrities
    • Lyrics
    • Artists
    • Biography
  • HSE
    • Hazards
    • NEBOSH
    • IOSH
    • Construction Safety
    • General Industry
    • Oil & Gas Safety
    • All Safety Courses
  • Forums

© 2022 Nyongesa Sande - So Much More To Read Now. A Nyosake Investment Inc.