Upgrading 8.04 LTS to 10.04 LTS

The Ubuntu Community Documentation recommends the following steps when upgrading the Long Term Support (LTS) version of its server operating system.  My server has been running 8.04 since April 2008 and has been a good and faithful server.  However, the time has come to upgrade it to new versions of the server software.  It is also an opportunity to completely clean out the accumulated cruft that happens when your development, test and live servers are one and the same.

Network Upgrade for Ubuntu Servers (Recommended)

Ensure you’re up to date with latest release:

sudo aptitude update
sudo aptitude safe-upgrade

Install update-manager-core if it is not already installed:

sudo apt-get install update-manager-core

edit /etc/update-manager/release-upgrades and set

Prompt=lts

Note: The minumum contents of /etc/update-manager/release-upgrades should be

[DEFAULT]
Prompt=lts

Launch the upgrade tool:

sudo do-release-upgrade

Follow the on-screen instructions.  At the end of the upgrade process you will be required to restart the server in order to boot into the new kernel. If you do not have access to the console of the system you are upgrading, you may need to edit /boot/grub/menu.lst and change the default boot kernel to the newly installed 10.04 kernel. If this step is not performed your server may attempt to boot into the 8.04 LTS kernel and will hang.

I get the following when  running the “do-release-upgrade” command:

do-release-upgrade
do-release-upgrade
Continue running under SSH?
This session appears to be running under SSH.
It is not recommended to perform an upgrade over SSH currently
because in case of failure it is harder to recover.
If you continue, an additional SSH daemon will be started at
port '9004'.  Do you want to continue?
Continue [yN]

So, what should I do?  I have a few options, I guess: (1) continue,  (2) exit and connect directly to the server using keyboard and monitor, or (3) take it off-line and do a clean install of 10.04 and rebuild from scratch and then restore from backup.  Yes, I have backups of all my configuration files, web directories and MySQL databases.

Leave a Reply

Your email address will not be published. Required fields are marked *