Andreas Jacobsen's Distraction

Another cause of procrastination

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.

About these ads

Written by Andreas

December 31, 2008 at 02:58

10 Responses

Subscribe to comments with RSS.

  1. Thanks, it done the trick for me too :)

    NiTRo

    January 3, 2009 at 03:26

  2. Awesome, the upgrade is finally going for me as well. Many thanks!

    Nick

    January 15, 2009 at 03:32

  3. It worked! You, sir are a genius.

    Travllight

    January 29, 2009 at 00:51

  4. Thanks very much for the tip for “no valid mirror found”. That had me stumped!

    wunder

    February 23, 2009 at 06:38

  5. It’s great to see people finding this useful!

    Andreas

    February 23, 2009 at 10:19

  6. Excellent, thank you very much for posting this. Probably saved me a lot of time.

    Arnar Birgisson

    March 10, 2009 at 16:49

  7. Amazing trick! Thank you so much for posting this.

    Dylan

    April 26, 2009 at 08:54

  8. Saved my bacon. Thanks!

    Lee

    June 12, 2009 at 03:59

  9. Hi, you might want to have a look here too: https://help.ubuntu.com/community/EOLUpgrades

    Wesley Schwengle

    November 8, 2009 at 22:08

  10. A very useful resource indeed, thanks.

    Andreas

    November 9, 2009 at 09:49


Comments are closed.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: