Updating Ubuntu Jaunty 9.04 to Natty 11.04

As you’ve probably found out upgrading your out dated install of Ubuntu is prooving to be quite an effort! You’ve probably googled a bit first to see the process involved and been hit with alot of people saying you cant update Jaunty to Lucid ~ Natty, or even you’ve just tried to update via the usual method and its not worked e.g:-

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade

So what i’ll do is walk you through how to update Ubuntu to Lucid and then the “fun” really starts. What you’ll find is when the update manager “apt” throws this message back in your face you’ll be stuck in a void of nothing and won’t be able to update without manually intervening.

Checking for a new ubuntu release
No new release found

I tried various other methods, and then I came across this method again of doing,

$ sudo apt-get dist-update

I thought I was onto a winner as the server started to update, only to find that when I did a lookup at the version my Ubuntu was using it reported that I was still using 9.04!

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=Jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

How annoying this is turning out to be! Right back to the drawing board.
After a good bit of googling, and a bit of intuitive I managed to get the OS to update… Well not to the latest version, but I thought If i go from Jaunty (9.04) to Karmic (9.10) then I could update to Lucid (10.04)+ Which has the LTS (Long Time Support) which in my eyes is needed for LAMP Servers!

This is how I got it to work…

You first of all need to change your /etc/apt/sources.list and inside of that file you need to comment everything out with #’s and add these lines to the very bottom

deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

Easiest way on ubuntu to edit said file would be to do:

$ sudo nano /etc/apt/sources.list

Once you’ve done that, and saved the file with CTRL + X then hit Y for allowed to Overwrite, and its just a case of running the apt update commands again like so:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

Once thats all updated you should be running a most upto date version of Jaunty, after this you need to update to Karmic.
So to do this we need to tell apt-where to look for Karmic update, So its back into the sources to change the url from Jaunty to Karmic

Replace these lines that we added earlier:-
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

With these lines:-
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse

Then save and overwrite it again, and continue to update in the same way with the following commands:-

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

Now we and make sure its updated to Karmic 9.10

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=Karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

Note: I managed to get an issue with a package or to, and it would seem that this is a common issue, so if you come into contact with this “/var/cache/apt/archives/kdebase-runtime-data_4%3a4.4.5-0ubuntu1_all.deb” You might want to try this (At your own risk!)

$ sudo rm /var/cache/apt/archives/*
Then once you’ve done that, do the updates again (Sorry it gets boring with writing the update commands, but this is a tutorial so I’m keeping it super easy and simple).
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

If that still throws an error, you might want to try this.

$ sudo dpkg -i --force-all /var/cache/apt/archives/kdebase-runtime-data_4%3a4.4.5-0ubuntu1_all.deb
$ sudo apt-get -f install
$ sudo apt-get autoremove

This fixed my issue, so I then moved onto checking my version with the overused command:
$ cat /etc/lsb-release

So you should be currently running Karmic 9.10! Great! You’re half way through this update.

Next time to tell the server to update to 10.04, So again we need to edit our Sources

$ sudo nano /etc/apt/sources.list

Yet this time we’re not looking for an older version so the URL are differnt.

Change this:
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse

to this:
deb http://security.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse

Then its just a case of rise and repeat with the update commands

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

Once thats completed, check your version!
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04.3
DISTRIB_CODENAME=Lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"

Thats you now running 10.04.3 and you now just need to repeat the exact same process for updating to Ubuntu 10.10 (Maverick) and then to Ubuntu 11.04 (Natty).
It’s a lengthy process but I’m sure you’ll all agree keeping these things updated often saves massive future headaches!

I hope that helps anyone who has been struggling updating their server install from a very out dated OS version.
Any issues or questions then please leave a comment below.

Thanks Dan.

8 responses so far, want to say something?

  1. john says:

    thanks, that was handy :)

  2. Dan Cunningham says:

    Glad I could help John!

    If I’ve helped just one person then I’ve successfully achieved the aim of this post!

    All the best to you John.

    Regards, Dan

  3. pang says:

    Dan

    That was a major help! Thanks mate.

    (Upgrading a net5501 that was running Ubuntu 9.04)

  4. Phong says:

    Why not directly update the sources.list to lucida ?
    Can it work instead of doing all upgrade one by one…

  5. Dan Cunningham says:

    @pang, No worries, Im glad it help you!

    @Phong, it doesnt work as the sources are so outdated apt gets confused and returns “Checking for a new ubuntu release, No new release found” as I mentioned in the second paragraph. I hope that clears up your concern. – Dan.

  6. Zeb says:

    Thanks for the tutorial Dan! I’ve been putting off upgrading my home server from jaunty for over a year because I thought it would be so time consuming, but as you outline, it can be done in a matter of minutes! Thanks again for the extremely friendly guide. – Zeb

  7. Ariel says:

    Thank you Dan.

    It did help me today.

  8. denis says:

    From Maverick it is supposed to be done with this util: update-manager-core. Once installed, run command: do-release-upgrade.

    Otherwise thanks, your guide saved me a lot of typing (used copy-paste from your post) :)

Leave a Reply