updating "sources.lst"

Asked by Cushie

I have just updated (not reinstalled) from Gutsy to Hardy. All went pretty smooth! My sources.lst though is in a tangle and there are reported errors of duplicate entries (which are hard to find). How do I start a clean Hardy' sources.lst? Can I get rid of or delete ALL references to 'Gutsy'? I have made a backup of the existing sources.lst. Any help would be appeciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cushie
Solved:
Last query:
Last reply:
Revision history for this message
Max Schukin (schukin) said :
#1

Hi Cushie,

Press Alt+F2 and enter:
gksudo gedit /etc/apt/sources.list
Replace all text in the file with following (it's my hardy sources.list):

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates restricted main multiverse universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ru.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://ru.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security restricted main multiverse universe #Added by software-properties
deb http://archive.ubuntu.com/ubuntu/ hardy-security universe
deb http://archive.ubuntu.com/ubuntu/ hardy-security multiverse

Revision history for this message
Cushie (redhotwal) said :
#2

Many thanks Max, that got got rid of the Gutsy references and cleaned things up nicely.

I do like the use of colours in the listing bu tthey did not copy over, sadly.

May I query the 'ru' repos, should I make these 'uk' ?

Also may I ask your opinion on including these repos; I think I may need Skype and a newer Virtualbox and Wine and I'm not certain about KDE4

# deb http://wine.budgetdedicated.com/apt gutsy main
# deb http://www.virtualbox.org/debian gutsy non-free
#deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main
# deb http://download.skype.com/linux/repos/debian/ stable non-free

Revision history for this message
Max Schukin (schukin) said :
#3

Those lines are commented (they don't matter). But if you want you can change those lines to:

# deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

# deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

You can include additional repos, but you must uncomment them first and replace "gutsy" with "hardy":

deb http://wine.budgetdedicated.com/apt hardy main

deb http://www.virtualbox.org/debian hardy non-free

deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main

deb http://download.skype.com/linux/repos/debian/ stable non-free

You can get VirtualBox and Wine without adding repos, just search them in Applications => Add/Remove...
For Skype add the following line into your sources.list:
deb http://download.skype.com/linux/repos/debian/ stable non-free

I'm in a hurry right now, I'll tell you about KDE4 later. Sorry...

Revision history for this message
Cushie (redhotwal) said :
#4

Many thanks Max, your help appreciated, all fixed