Thursday, August 25, 2011

upgrading from ubuntu 8.10 to 9.04 (Intrepid to Jaunty)

The upgrade
Please make sure you have the following sources.list (/etc/apt/sources.list remove all other entries you have there).

## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse
Update the package list and upgrade all the installed packages
sudo apt-get update && sudo apt-get dist-upgrade
Perform the release upgrade.
sudo do-release-upgrade

you will get an error
do-release-upgrade 
Checking for a new ubuntu release
Failed Upgrade tool signature
Failed Upgrade tool
Done downloading            
extracting 'jaunty.tar.gz'
Failed to extract
Extracting the upgrade failed. There may be a problem with the network or with the server. 
you can inspect the metadata for releases and you need to replace with release old-releases prefix (fixed by me)

to look like this for jaunty
Dist: jaunty
Name: Jaunty Jackalope
Version: 9.04
Date: Thu, 23 Apr 2009 12:00:00 UTC
Supported: 1
Description: This is the 9.04 release
Release-File: http://old-releases.ubuntu.com/ubuntu/dists/jaunty/Release
ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
UpgradeTool: http://old-releases.ubuntu.com/ubuntu/dists/jaunty-proposed/main/dist-upgrader-all/0.111.8/jaunty.tar.gz
UpgradeToolSignature: http://old-releases.ubuntu.com/ubuntu/dists/jaunty-proposed/main/dist-upgrader-all/0.111.8/jaunty.tar.gz.gpg

wget https://raw.github.com/gist/1170565/c6d5b3deece6f7451ec76419810d898eda0fadde/metarelease.rvg -O /etc/meta-release.rvg

Modified /etc/update-manager/meta-release so that it pointed to my local file rather than the incorrect URI on the ubuntu site - here is what it looked like after my change:

[METARELEASE]
URI = file:///etc/meta-release.rvg
URI_LTS = http://changelogs.ubuntu.com/meta-release-lts
URI_UNSTABLE_POSTFIX = -development
URI_PROPOSED_POSTFIX = -proposed

I then ran do-release-upgrade and everything worked like a charm

9 comments:

Iceman said...

I tried that, and it just tells me that there are "No new release found".

Ok, it looks better than "Extracting the upgrade failed. There may be a problem with the network or with the server.", but I'm still stuck with Intrepid... :/

Iceman said...

I tried that, and it just tells me that no updates are found.

It beats an error message, but I'm still stuck with intrepid...

Popa Adrian Marius said...

you need to install the custom release file meta-release

Iceman said...

If by that you mean wgetting the metarelease.rvg from old-releases and updating the URI in /etc/update-manager/meta-release so it points to the local file: I did that. Apparently it was not enough.

In the end I wgetted the jaunty.tar.gz, gunzipped it, and ran the distUpdate.py directly.

It is less clean, but it worked. I had to do the same for karmic, then lucid, and after that it was back to the "good" way of doing things (after fixing the meta-release file).

Edward Jimenez said...

I commented out all lines in /etc/apt/sources.list and added the lines you specified. I also downloaded your customized meta-release and followed the rest of your instructions.

I also unchecked all check boxes under Ubuntu Software in the sofware sources under the system menu.

After that, it worked as expected. Thanks for the post.

Ken Mix said...

Worked perfectly. Thank you!

Sohail said...

Worked just fine. Thanks.

John said...

looks to be working... Just need to wait until everyone goes home so I can run the upgrade.

Kevin said...

Thanks. That worked very nicely.
This is why the net is such a good thing!