Here at dediserve we generally only put together templates based on tested and secure operating systems that are a couple of years old, after all not many want to take the risk of hosting their data on bleeding edge OS releases, however we do have some customers that require the lastest release for their testing/development machines.
So i have put together this tutorial on upgrading your ubuntu 8.04 LTS template with us to the latest Ubuntu server release 9.10. Simply follow the steps below via the command line on your server.This needs to be done in stages from version 8.04 through to 9.10.
If you are upgrading a Live Machine ensure you have taken a Back-up Via your Dediserve control panel.
First become root:
sudo su
Then run
apt-get update
and install the package update-manager-core:
apt-get install update-manager-core
Open the file /etc/update-manager/release-upgrades…
vim /etc/update-manager/release-upgrades
… and change Prompt=lts to Prompt=normal:
Then run
do-release-upgrade
to start the distribution upgrade.
Confirm that you want to do the upgrade:Do you want to start the upgrade? 2 packages are going to be removed.
48 new packages are going to be installed.376 packages are going to be upgraded.
You have to download a total of 242M.This download will take about 6 minutes with your connection. Fetching and
installing the upgrade can take several hours.Once the download has finished, the process cannot be cancelled.
Continue [yN] Details [d] <– y
At the end of the upgrade process, you should remove obsolete packages:
Remove obsolete packages? 21 packages are going to be removed.
Continue [yN] Details [d] <– y
The server needs to be rebooted to complete the upgrade:
System upgrade is complete.
Restart required
To finish the upgrade, a restart is required. If you select ‘y’ the system will be restarted.
Continue [yN] <– y
After the reboot, your server is running Ubuntu 8.10.
Be sure that you have all updates applied to Ubuntu 8.10 server before you upgrade. Type the following command to apply updates:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install update-manager-core
Finally, start the upgrade tool, enter:
$ sudo do-release-upgrade
do reboot
After the reboot, your server is running Ubuntu 9.04
There is currently some issues with the upgrade path from 9.04 – 9.10 so simply copy and paste the command lines below into your command line
and it should work fine.
#Now at 9.04, after rebooting log in and again:
apt-get -y remove linux-image* linux-ubuntu-modules*
#Tell grub that it’s not in xen domU as it’s autodetection breaks installing the kernel
sed -i ‘s/# indomU=detect/# indomU=false/g’ /boot/grub/menu.lst
#Update the device names from /dev/sda1 to /dev/xvda1
sed -i ‘s/sda1/xvda1/g’ /boot/grub/menu.lst
sed -i ‘s/sda1/xvda1/g’ /etc/fstab
sed -i ‘s/sda2/xvda2/g’ /etc/fstab
#Install the linux -virtual kernel
apt-get -y install linux-virtual
#This is should automatically update your /boot/grub/menu.lst if not, run: update-grub, then check the two entries have root=/dev/xvda1 in
#Upgrade to 9.10
do-release-upgrade
Reboot
After the reboot, your server is running Ubuntu 9.10
Tags: Booting, Command-line interface, Distributions, Linux, Operating system, ubuntu, Update Manager
Thanks for such a detailed giude. This post is extremely useful for Ubuntu users
Go on and wite something more about this…