How to Upgrade Your Ubuntu Server Version over the Network and via the Terminal CodeUnit 20 JUL 2010

The nice thing about Canonical’s Ubuntu is that they have a nice and consistent major release cycle, making the management of your Ubuntu servers a pretty planned affair.

The question today is of course how to actually initiate a network upgrade on your terminal-only Ubuntu server once the time to upgrade finally rolls on by?

Well that actually depend on which version you are upgrading from and which version you are upgrading to!

So let’s do the most expected one for now: Upgrading your 9.10 Ubuntu Server (Karmic Koala) to 10.04 LTS (Lucid Lynx).

First, make sure you apply all updates to your current version (run sudo apt-get update to update your package sources and then sudo apt-get upgrade to update all the actual packages).

Next, install the update-manager-core if it isn’t already installed: sudo apt-get install update-manager-core.

Then edit /etc/update-manager/release-upgrades and set Prompt=normal.

Finally, launch the upgrade tool via sudo do-release-upgrade and then follow the on-screen instructions as the system pulls down all the necessary files over the network and attempts to upgrade your system.

Great.

If however you are upgrading from something slightly older like 8.04 LTS (Jaunty Jackalope) to 10.04 LTS (Lucid Lynx), you’ll have to do the following:

First, make sure you apply all updates to your current version (run sudo apt-get update to update your package sources and then sudo apt-get upgrade to update all the actual packages).

Next, install the update-manager-core if it isn’t already installed: sudo apt-get install update-manager-core.

Then edit /etc/update-manager/release-upgrades and set Prompt=lts.

Finally, launch the upgrade tool via sudo do-release-upgrade –devel-release and then follow the on-screen instructions as the system pulls down all the necessary files over the network and attempts to upgrade your system.

And that’s really all there is to it. Note that upgrading might take a while over a slow connection as there are a lot of files that need to be pulled down.

Also, if you want to see which version of Ubuntu Server you are currently running, this might be useful: cat /etc/lsb-release

Nifty, you should now be good to go! :)

Related Link: http://www.ubuntu.com/desktop/get-ubuntu/upgrade

Related Posts:

About Craig Lotter

Software developer, husband and dad to two little girls. Writer behind An Exploring South African. I don't have time for myself any more.