This guide provides instructions on how to get your VPS upgraded from Ubuntu 8.04, 8.10, 9.04 or 9.10 to 10.04. There are some major configuration and system revisions between these versions so some care needs to be taken when upgrading else you will be left with a broken system! If this is the case, please contact support.
Please take heed of the important notes on each of the various version upgrade processes, as failing to do so will leave you with a broken system.
If you are running Ubuntu 8.04, the process is quite simple to upgrade. You do not need to go through any intermediary steps because 8.04 is an LTS build unlike 8.10 or 9.04.
apt-get install update-manager-core
Prompt=lts
do-release-upgrade --proposed
This upgrade requires three upgrade steps as you cannot directly go from 8.10 to 10.04 like you can with 8.04. Once you complete the below steps, you will be running 9.04, and you can then follow the upgrade instructions for that version (found below) to continue the upgrade process.
apt-get install update-manager-core
do-release-upgrade
This upgrade requires two upgrade steps as you cannot directly go from 9.04 to 10.04 like you can with 8.04. Once you complete the below steps, you will be running 9.10, and you can then follow the 9.10 upgrade instructions to complete the upgrade process. Make sure you've read the Note above.
apt-get install update-manager-core
do-release-upgrade
This process is quite similar to the 8.04 upgrade.
apt-get install update-manager-core
Prompt=normal
do-release-upgrade
This section is very important to complete otherwise you will be left with a broken system. Firstly, Ubuntu 10.04 uses a new /dev filesystem type that has to be explicitly defined in the fstab. So let's edit the file /etc/fstab and add the following line:
dev /dev devtmpfs rw 0 0
Note: If you are upgrading from 8.10 or 9.04, you do not need to do this until you have reached 9.10. After the first (or second) upgrade cycle, you will be running 9.10. After that is complete, go back and complete the above modification.
Ubuntu 10.04 also uses a new console device called hvc0
which we have to configure the getty to listen on this device for user logins. We do this by creating the file /etc/init/hvc0.conf with the following contents:
# hvc0 - getty # # This service maintains a getty on hvc0 from the point the system is # started until it is shut down again. start on stopped rc RUNLEVEL=[2345] stop on runlevel [!2345] respawn exec /sbin/getty -L hvc0 9600 linux
Save and exit this file. Next, to prevent some nasty (although non-fatal) errors in the boot process, we disable some unnecessary services using the following shell commands.
cd /etc/init/ for i in plymouth* ureadahead*; do mv $i $i.disabled; done
Once complete, you can now reboot your VPS and enjoy the latest version of Ubuntu!