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.
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
Note: The minumum contents of /etc/update-manager/release-upgrades should be
Launch the upgrade tool:
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:
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?
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.