Upgrading Ubuntu after EOL
I have a box with Ubuntu 7.10 (Feisty Fawn), which EOLed back in October. Now that I have a few days to spare over the holidays I thought I’d get around to upgrading it to something current. Unfortunately when Feisty was EOLed they moved the package repositories. The new mirror is at old-releseases.ubuntu.com.
The error I was getting looked like this:
# do-release-upgrade
....
E: Some index files failed to download, they have been ignored, or old ones used instead.
To correctly upgrade, I did as follows:
# sed -ie 's#us.archive.ubuntu.com#old-releases.ubuntu.com#' /etc/apt/sources.list
# apt-get update && apt-get upgrade -y
Apt should correctly update all packages to your EOLed release’s final version. When that was done, I was ready to upgrade to Gutsy. The upgrade manager the Ubuntu folks have come up with is pretty slick, but doesn’t take into account that you might be running an apt mirror that doesn’t also serve the version of the distro you’re upgrading to. Oops. Getting it sorted isn’t that big a deal. I started it.
Then, when prompted for information about my mirrors, I backgrounded do-release-upgrade with C-z and fixed my source.list again, this time to reflect a repository that was invalid for Feisty, but valid for Gutsy:
# do-release-upgrade
...
Updating repository information
No valid mirror found
While scanning your repository information no mirror entry for the upgrade was found.This can happen if you run a internal mirror or if the mirror information is out of date.
Do you want to rewrite your 'sources.list' file anyway? If you choose 'Yes' here it will update all 'feisty' to 'gutsy' entries.
If you select 'no' the update will cancel.
Continue [yN]
[1]+ Stopped do-release-upgrade
# sed -if 's#old-releases.ubuntu.com#us.archive.ubuntu.com#' /etc/apt/sources.list
# fg
y
And after that it was all smooth sailing.
Thanks, it done the trick for me too
NiTRo
January 3, 2009 at 3:26 am
Awesome, the upgrade is finally going for me as well. Many thanks!
Nick
January 15, 2009 at 3:32 am
It worked! You, sir are a genius.
Travllight
January 29, 2009 at 12:51 am
Thanks very much for the tip for “no valid mirror found”. That had me stumped!
wunder
February 23, 2009 at 6:38 am
It’s great to see people finding this useful!
Andreas
February 23, 2009 at 10:19 am
Excellent, thank you very much for posting this. Probably saved me a lot of time.
Arnar Birgisson
March 10, 2009 at 4:49 pm
Amazing trick! Thank you so much for posting this.
Dylan
April 26, 2009 at 8:54 am
Saved my bacon. Thanks!
Lee
June 12, 2009 at 3:59 am
Hi, you might want to have a look here too: https://help.ubuntu.com/community/EOLUpgrades
Wesley Schwengle
November 8, 2009 at 10:08 pm
A very useful resource indeed, thanks.
Andreas
November 9, 2009 at 9:49 am