Thursday, April 1, 2010

How to upgrade Ubuntu Server 9.04 to 9.10 (to 10.04)

The upgrade of Ubuntu Server 9.04 to 9.10 is not as easy as I thought. I tried the a few different methods which I found from the Internet. But none of them are useful. And finally I found a way to solve the issue by myself. If you had same trouble as mine. You should read though this article.


Basically here are the steps which most peoples would refer to:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install update-manager-core

$ sudo do-release-upgrade


But I can tell you these steps doesn't help in my case. I still got the message when I did the last step:
Checking for a new ubuntu release
No new release found


I also tried the following step:

$ sudo apt-get dist-update


Still same thing, when I typed command:
$ cat /etc/lsb-release


It still shows me, it's Jaunty version 9.04 which is not what I want:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=Jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"


Finally I got the idea from Ubuntu Repositories. Basically you need to edit the file /etc/apt/sources.list, and change all "Jaunty" to "Karmic". Then do the following steps again:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade


After reboot, you will see your Ubuntu version is changed to Karmic version 9.10.

$ cat /etc/lsb-release


DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=Karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"


Hope this guide will help you to upgrade your Ubuntu Server from 9.04 to 9.10 successfully.

Tips:

Using VI editor tool to replace Text "Jaunty" to "Karmic" at once:
$ vi /etc/apt/source.list

Then type the following command at the bottom of the VI editor:
:%s/karmic/lucid/g

You will see the following message:
18 substitutions on 18 lines

Now save and quit.
:wq!


Done!

Update on 2-Apr-2010:

Just checked Ubuntu Web Site, Ubuntu release Lucid (10.04) beta version is ready. So I modified the file /etc/apt/sources.list again, and replaced all "Karmic" with "Lucid". Then do the following steps:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade


After reboot, you will see your Ubuntu version is changed to Karmic version 9.10.

$ cat /etc/lsb-release


DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=Lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04"


16 comments :

  1. nice! thank you. it work for me :P

    Best Regards
    Dinox Cheah

    ReplyDelete
  2. It works ok! Thanks!

    Daniel

    ReplyDelete
  3. Worked fine, haha thanks!

    ReplyDelete
  4. Sweet! It worked!

    Thanks.

    ReplyDelete
  5. I was using "deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse" in my /etc/apt/sources.list. When I changed old-releases to archive and jaunty to karmic like the following "deb http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse" the apt-get update and upgrade worked.

    ReplyDelete
  6. Simple, concise and worked beautifully. Once in 9.10 I just used the usual upgrade process to get to lucid.

    Many Thanks.

    ReplyDelete
  7. follow your method as I had a com server 9.04 and the perfect upgrade to version 10.04.3 LTS, and saves them as I upgrade to 10.10

    ReplyDelete
  8. An absolute lifesaver, thanks for posting the instructions they worked perfectly for me upgrading from 9.04 to 10.04.

    ReplyDelete
  9. lifesaver. Not finished yet but it seems to be working. None of the official upgrade methods worked for me (using the alternate cd, do-release-upgrade, etc...).

    ReplyDelete
  10. I tried the above steps, but it did not work for me. The command,
    cat /etc/lsb-release
    still says that I have jaunty, Ubuntu 9.04. Bye the way, in my case, it makes 23 substitutions.

    Does any one know the reason?

    ReplyDelete
  11. Tried this from remote terminal. Sudo vi /etc/apt/source/list, displayed an empty file. Now what????

    ReplyDelete
  12. Very helpful. My server was running Ubuntu 9.04 and wanted to go to Ubuntu 10.04 LTS, even though 9.04 is no longer supported.

    I tweaked your instructions and was able to get to 9.10, and am in the process of upgrading to 10.04 LTS as I write this. I put my updated instructions on the Ubuntu forums here:

    http://ubuntuforums.org/showthread.php?t=1874802

    ReplyDelete
  13. Went from 9.04 -> 9.10 -> 10.10.

    Met many obstacles but finally I got them all sorted out. Last boot gave me non functioning kernel, but I solved it with Live CD, mounting of important directories and a fresh kernel install.

    From here I will only go for LTS. I am running server anyway so it is best for me.

    Thanks

    ReplyDelete
  14. I ment 9.04 -> 9.10 -> 10.04 LTS

    ReplyDelete
  15. It's work for me!
    Thanks.

    ReplyDelete

Comments System

Disqus Shortname