Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

How To Upgrade Ubuntu 11.10 (Oneiric Ocelot) To 12.04 LTS (Precise Pangolin) (Desktop & Server)


The new Ubuntu 12.04 LTS (Precise Pangolin) has just been released. Ubuntu 12.04 LTS is a long-term support release, which means it is supported for five years. This guide shows how you can upgrade your Ubuntu 11.10 desktop and server installations to Ubuntu 12.04 LTS.

This document comes without warranty of any kind! I do not issue any guarantee that this will work for you!

 

1 Desktop

Start the Update Manager:

1

The Update Manager should show that a new distribution release (12.04 LTS) is available. Please do not click on the Upgrade button right now – first we have to make sure that the latest updates, including the latest version of the dpkg package, are installed. If you start the distribution upgrade with an old dpkg version, you will probably break your system (see https://bugs.launchpad.net/ubuntu/+source/taglib/+bug/902603).

To check for the latest updates, click on the Check button first. After the check has finished, click on the Install Updates button to install the latest updates:

20

Type in your password:

21

The latest updates are now being installed:

22

Click on Restart Now if a system restart is required:

23

If you had to reboot, open the Update Manager again.

The Update Manager should now show There are no updates to install. If that is the case (and only then!) click on the Upgrade button right of New Ubuntu release ‘12.04 LTS’ is available:

24

A window with the release notes for Ubuntu 12.04 comes up. Click on Upgrade again:

25

The upgrade tool is now being downloaded. Afterwards, type in your password:

26

The upgrade is being prepared:

27

Click on Start Upgrade to finally begin with the upgrade process:

28

The upgrade packages are now being downloaded…

29

… and installed. This can take some time, so please be patient.

30

It is a good idea to expand the terminal in the Distribution Upgrade window so that you can react if the distribution upgrade needs your input (otherwise the upgrade will seem to hang):

31

At the end of the upgrade process, you should remove obsolete packages:

33

34

The system needs to be rebooted to complete the upgrade, therefore click on Restart Now:

35

The system should now boot into your new Ubuntu 12.04 desktop:

36

Welcome to your new your new Ubuntu 12.04 desktop:

38

2 Server

First become root:

sudo su

Then run

apt-get update

and install the latest updates:

apt-get upgrade

Then install the package update-manager-core:

apt-get install update-manager-core

Open the file /etc/update-manager/release-upgrades

vi /etc/update-manager/release-upgrades

… and make sure it has Prompt=normal in it:

[...]
Prompt=normal

Then run

do-release-upgrade

to start the distribution upgrade.

root@server1:~# do-release-upgrade
Checking for a new ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1550 kB]
Fetched 1550 kB in 0s (0 B/s)
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 a 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

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] <– ENTER

[…]

Do you want to start the upgrade?

2 installed packages are no longer supported by Canonical. You can
still get support from the community.

5 packages are going to be removed. 52 new packages are going to be
installed. 426 packages are going to be upgraded.

You have to download a total of 286 M. This download will take about
2 minutes 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

During the update, a few services might need a restart. If the update manager asks you which services should be restarted (it shows a list of services), just accept the default services by pressing ENTER.

At the end of the upgrade process, you should remove obsolete packages:

Remove obsolete packages?

19 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 12.04. To be sure, take a look at /etc/issue:

cat /etc/issue

root@server1:~# cat /etc/issue
Ubuntu 12.04 LTS \n \l

root@server1:~#

 

  • Ubuntu: http://www.ubuntu.com/

Comments

comments