Modifying Ubuntu 6.06 Repositories

How to add extra repositories to dapper - you can find out which version you are running by entering the following command: cat /etc/issue

Fist Make a backup of the file:

sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup

Next go to Run Command...

Ubuntu Users: gksudo gedit /etc/apt/sources.list

Kubuntu Users: kdesu kate /etc/apt/sources.list

If you prefer to use a <C>ommand <L>ine <I>nterpreter editor then sudo nano /etc/apt/sources.list

Then replace everything with the following lines

## Add comments (##) in front of any line to remove it from being checked.
## Use the following sources.list at your own risk.

deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse

## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera and more to come.)
deb http://archive.canonical.com/ubuntu dapper-commercial main

Save the edited file

sudo apt-get update
  • You may also replace your sources.list with this very complete list: sources.list (be sure to replace "it" from "it.archive.ubuntu.com" with your country code. Use at own risk.
  • Modify the default Ubuntu sources.list only if you understand what you're doing. Mixing repos can cause breakage.