Home Download Ubuntu

Edit Ubuntu repositories

It's always a good idea to backup a configuration file like sources.list before you edit it

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

To add some Ubuntu repositories, you need to edit sources.list:

sudo nano /etc/apt/sources.list

Typically, the sources.list file looks like this:

# sources.list
# deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080701)]/ hardy main restricted

#deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080701)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

Now insert at the end of the file those servers:

deb http://www.verlihub-project.org/debian binary/
deb-src http://www.verlihub-project.org/debian source/

then update repositories list with:

sudo apt-get update

Short explanation of the repository format:

- 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.
- hardy 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.

Resources: Community Ubuntu Documentation, Debian Admin


Post a Comment