PDA

View Full Version : [ubuntu] 10.04 -> 10.10 upgrade fails to start



smylie
October 19th, 2010, 08:45 AM
I'm having issues trying to start the upgrade from 10.04 -> 10.10.

When I start the upgrade, it tries to download the sources and then fails saying it was unable to connect.

I'm not sure of the format, but looking at the end of the line, it seems as though it doesn't have the full address to connect to. eg:


W: Failed to fetch http:/archive.canonical.com/ubuntu/dists/karmic/Release.gpg Unable to connect to :http:

I've tried the obvious stuff like waiting for a few days (incase of network issues), and changing the server I'm fetching the sources from in synaptic. It doesn't seem to make any difference in terms of the errors below.

I've looked at my sources.list, and it seems normal, but there's a number of references to Karmic in /etc/apt/sources.d/
that I wouldn't have expected. (Maybe left over from the previous upgrade from 9.10?)

The full error trace is:

$ sudo dpkg --configure -a
$ sudo apt-get update && sudo apt-get dist-upgrade
Err http: lucid Release.gpg
Unable to connect to :http:
Err http:/archive.canonical.com/ lucid/partner Translation-en_NZ
Unable to connect to :http:
Ign http: lucid Release
Ign http: lucid/partner Packages
Ign http: lucid/partner Packages
Err http: lucid/partner Packages
Unable to connect to :http:
Hit http://nz.archive.ubuntu.com lucid Release.gpg
Ign http://nz.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_NZ
Ign http://nz.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_NZ
Ign http://nz.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_NZ
Ign http://nz.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_NZ
... lots of lines with no errors goes here....
Hit http://archive.ubuntu.com karmic-backports/multiverse Sources
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_NZ
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_NZ
Hit http://archive.canonical.com lucid Release
Get:2 http://dl.google.com stable Release [1,338B]
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.canonical.com lucid/partner Sources
Get:3 http://dl.google.com stable/main Packages [613B]
Fetched 2,140B in 9s (237B/s)
W: Failed to fetch http:/archive.canonical.com/dists/lucid/Release.gpg Unable to connect to :http:

W: Failed to fetch http:/archive.canonical.com/dists/lucid/partner/i18n/Translation-en_NZ.bz2 Unable to connect to :http:

W: Failed to fetch http:/archive.canonical.com/dists/lucid/partner/binary-i386/Packages.gz Unable to connect to :http:

E: Some index files failed to download, they have been ignored, or old ones used instead.



My sources.list:


deb http://nz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid main restricted

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://nz.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid universe
deb http://nz.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid-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://nz.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid-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://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

deb http://nz.archive.ubuntu.com/ubuntu/ lucid-security main restricted
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid-security main restricted
deb http://nz.archive.ubuntu.com/ubuntu/ lucid-security universe
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid-security universe
deb http://nz.archive.ubuntu.com/ubuntu/ lucid-security multiverse
deb-src http://nz.archive.ubuntu.com/ubuntu/ lucid-security multiverse

deb http:/archive.canonical.com/ lucid partner
deb http://nz.archive.ubuntu.com/ubuntu/ lucid-backports restricted main multiverse universe
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner



I've tried searching for a default sources.list to see if I could replace mine with the defaults, but had no luck with that.

Anyone got any ideas on how I could kick off this upgrade without resorting to a fresh install?

Cheers
Dave Smylie

gyussz
October 19th, 2010, 09:33 AM
What happens if you try to update it from a different server?
System -> Administration -> Software Sources -> Ubuntu Software tab -> Download from: choose the Main Server. I had problems too with the nearest server, but the main server works fine.

Hope this helps, worth a try :)

mörgæs
October 19th, 2010, 09:36 AM
I would always go for the clean install, but if you want to try an upgrade you could put a # in front of everything pointing to 9.10.

gyussz
October 19th, 2010, 09:42 AM
I would always go for the clean install, but if you want to try an upgrade you could put a # in front of everything pointing to 9.10.

In normal circumstances the updater should disable them automatically during the update.

smylie
October 19th, 2010, 10:33 AM
Resolved the issue - sorta.

I deleted everything under /etc/apt/sources.list.d/ and commented out everything from sources.list other than the main repositories.

I had a few other installed packages it barfed on (update-manager-kde) which I had to remove manually before the install would start, but seems to be running okay now =)

Hopefully in an hour or so I'll have an upgraded system...

Cheers for the help everybody

Dave