Upgrade from Ubuntu 10.04 To 12.04

Posted on by J. Mays | Updated:
Reading Time: 4 minutes

It is highly recommended that you take an image of your existing server prior to following these instructions. Doing so will ensure that if something unexpected occurs, you will be able to restore your server from the backup image.

It is also your imperative, as a Self-Managed customer, to make sure your installed applications that currently work on Ubuntu 10.04 also work on Ubuntu 12.04.

For instructions on creating a backup image from the Manage interface please visit:

Preflight Check
  • These instructions are intended specifically and only for upgrading from Ubuntu 10.04 to Ubuntu 12.04 in Liquid Web US Central Zone A.
  • I’ll be working from a Liquid Web Self-Managed Ubuntu 10.04 server, and I’ll be logged in as root.

Step 1: Check Your Kernel Version

This process only applies servers that are Ubuntu 10.04, and have the kernel version 2.6.36-rc8101910.

Use the following command to check your Ubuntu version:

lsb_release -a

The result of the above command should look similar to:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

Use the following command to check your kernel version:

uname -r

The result of the above command should look exactly like:

2.6.36-rc8101910

Step 2: Prepare for The Upgrade

First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.

aptitude -y update

Then it’s a matter of just running one command for installation via aptitude:

aptitude -y install update-manager-core

Step 3: Begin the Upgrade from Ubuntu 10.04 to Ubuntu 12.04

Once the packages in the previous step have been installed you’re ready to proceed with the upgrade. Start the upgrade with the following command:

do-release-upgrade

You should receive a warning message asking whether you want to continue upgrading over SSH, with the option of answering y or n. Assuming you appropriately took an image of your Storm server, it is safe to enter y, then hit enter, to continue.

Checking for a new Ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading
authenticate ‘precise.tar.gz’ against ‘precise.tar.gz.gpg’
extracting ‘precise.tar.gz’

Reading cache

Checking package manager

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
‘1022’.

Do you want to continue?

Continue [yN] y

Next, you’ll get another message confirming that another sshd port is going to start… hit enter to continue.

Starting additional sshd

To make recovery in case of failure easier, an additional sshd will
be started on port ‘1022’. If anything goes wrong with the running
ssh you can still connect to the additional one.

To continue please press [ENTER]

You should receive another warning regarding a “Failed to read mirror file”. It is safe to move on from this point… hit enter to continue.

Updating repository information
WARNING: Failed to read mirror file

Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the ‘software-properties’ tool
or your package manager.

To continue please press [ENTER]

It’s now time to confirm that you want to upgrade; type y then hit enter to continue.

Do you want to start the upgrade?

1 installed package is no longer supported by Canonical. You can
still get support from the community.

5 packages are going to be removed. 86 new packages are going to be
installed. 247 packages are going to be upgraded.

You have to download a total of 131 M. This download will take about
41 seconds with your connection.

Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.

Continue [yN] Details [d] y

Step 4: Complete the Upgrade from Ubuntu 10.04 to Ubuntu 12.04

You will be prompted to ‘restart services during a package upgrade without asking’. Though this will cause services on your server to go down briefly, select Yes then hit enter to continue.

Upgrade from Ubuntu 10.04 to Ubuntu 12.04 in Liquid Web US Central Zone A
Next, you’ll be prompted regarding plymouth.conf; type Y then hit enter to continue.

Configuration file `/etc/init/plymouth.conf’
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.

*** plymouth.conf (Y/I/N/O/D/Z) [default=N] ? Y

You’ll also be prompted regarding the Console Setup; be sure UTF8 is selected and then hit enter TWICE to continue.

Upgrade from Ubuntu 10.04 to Ubuntu 12.04 in Liquid Web US Central Zone A
Next, you’ll be prompted regarding obsolete packages; type y then hit enter to continue.

Remove obsolete packages?

11 packages are going to be removed.

Continue [yN] Details [d] y

Now, DO NOT reboot the server; type N then hit enter to continue.

The 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] N

Step 5: Install the Updated Kernel

Follow a simple best practice: ensure the list of available packages is up to date before installing anything new.

aptitude -y update

Then it’s a matter of just running one command for installation via aptitude:

aptitude -y install linux-image-virtual

You’ll receive a prompt regarding a ‘new version of /boot/grub/menu.lst’ being available. Select install the package maintainers version then hit enter to continue.

Upgrade from Ubuntu 10.04 to Ubuntu 12.04 in Liquid Web US Central Zone A

That’s it! You should now be ready to reboot your server. Enter reboot now then hit enter to continue!

reboot now

Step 6: Check Your Work

Log back into your server as root and use the following command to check your Ubuntu version:

lsb_release -a

The result of the above command should look similar to:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 10.04
Codename: precise

Use the following command to check your kernel version:

uname -r

Verify the output shows you are running a 3.2.X kernel (such as ‘3.2.0-65-virtual’).

3.2.0-65-virtual

Avatar for J. Mays

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

Blocking IP or whitelisting IP addresses with UFW

Read Article

CentOS Linux 7 end of life migrations

Read Article

Use ChatGPT to diagnose and resolve server issues

Read Article

What is SDDC VMware?

Read Article

Best authentication practices for email senders

Read Article