Wednesday, January 23, 2013

How to Generate A New Sources List For Ubuntu



If you have ever peeked into the “sources.list” file located at the “/etc/apt/” folder, you will know that it contains the repository of all the packages available to your machine. Additionally, if you want to add PPA manually, you have to open this file and add the PPA to the end of the list. What if, on a fresh install of Ubuntu, you discover that your “sources.list” is empty? Or you need to change the whole repository to one that is specific to your country? How can you generate a new sources list without any technical skill?
The Ubuntu Sources List Generator is one great tool that you can use to generate source list for your Ubuntu.
1. Go to the Ubuntu Sources List Generator site.
2. Select the Country where you want to download the repository from.
3. Select your Ubuntu release.
source-generator-select-country-release
4. Scroll down the list and select the components that you want in your repository. The standard ones are “Main”, “Restricted”, “Universe”, “Multiverse”, “Security” and “Updates”. You can also include “Partner” and “Extra” to include additional software that are not provided by Ubuntu.
5. In addition to the main sources, the Generator also include popular PPAs like Cairo Composite Manager, Cortina Wallpaper changer, GIMP, Google Chrome, Virtualbox, Steam, Spotify etc. that you can include in your sources list. Simply check the box beside the PPA.
source-generator-third-party-software
6. Lastly, scroll all the way down to the bottom and press the “Generate List” button.
7. On the next page, you should see three big boxes. The first box at the top contains the sources list that you have selected and you will need to copy/paste them into your sources.list file. In your terminal,
gksu gedit /etc/apt/sources.list
Paste the sources lists into the document (for a new slate, you might want to erase all the existing sources listed in the file before pasting the new sources list in). Save and exit.
8. If you have added third party software’s PPA, it will show you the PPA key that you need to add to your system. Run the commands in your terminal, line by line.
source-generator-generated-sources-list
9. The third box is the alternate layout for Synaptic, which you can ignore most of the time.
To complete the process, you need to update and upgrade your system:
sudo apt-get update && sudo apt-get upgrade
That’s it.

No comments:

Post a Comment