There are now thousands of software available for Ubuntu users. These software are stored in software archives that are referred to as repositories. These repositories make it easy for users with an Internet connection to install in a secure way new programs.

In this guide we will show you two methods for adding repositories on Ubuntu 11.10/11.04. The first method consists of adding a new repository via a GUI (Software Sources), the other consists of editing manually the /etc/apt/sources.list file for adding repositories.

Method 1

1. Under Ubuntu 11.10/11.04, open Ubuntu Software Center and head to Edit > Software Sources:

You can also start Software Sources via the Unity Dash under Ubuntu Oneiric:

2. Select the Other Software tab and click Add:

3. Add now any repository of your choice and click Add Source (root password is required for adding repositories):

4. Close the Software Sources window and open the Terminal (Ctrl+Alt+T) and run this command to update your repositories:

sudo apt-get update

Method 2

1. Open the terminal and edit /etc/apt/sources.list with this command:

sudo gedit /etc/apt/sources.list

2. Add at the end of the file in a new line(s) your repository(ies), then save and close.

3. Via the terminal, update repositories with this command:

sudo apt-get update

That's it!

Post a Comment