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

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:


Then run


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
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



3 Links

Share this page:

7 Comment(s)

Add comment


From: at: 2012-04-26 19:55:46

One thing I find depressing is that there is no upgrade or conversion process for 32-bit to x64.

 I'd like to see a guide that stipulates methods for converting.  I could see it being possible by backing up /etc/, /home/, and other particulars to restore upon installation.  However, I'm not well versed enough to accomplish this.

From: Anonymous at: 2012-04-29 16:39:48

Just performed this upgrade and it went smoothly, all settings, apps and customization went from 11.10 to 12.04; no reformatting, no borked settings, no crapped out hardware - now why can Apple and MS not accomplish this with at least 10X market cap., I'll never know.....makes me glad to have jumped 7-8 years ago from them. Unity is growing on me and they've done a good job keeping classic gnome easily accessible a short install away.

From: Shawn at: 2012-05-02 11:47:41

The upgrade wasnt so pleasent for me..

When it came to downloading all the ms-fonts, it failed repeatedly, I think found a link on Ubuntu page how to fix..but it was too late, I have had to reinstall..

From: Saurabh Bansal at: 2012-08-24 11:12:43

Hi, I'm running Ubuntu 12.04 64-bit. But today Ubuntu 12.04.1 has been released. Do I need to upgrade to Ubuntu 12.04.1? If yes, how?

From: Eduardo Bergavera at: 2012-04-27 09:38:28

 Hi Falko,

 This  is a great tutorial regarding the upgrade process presented in a clear and concise manner. I noticed that that command sudo do-release-upgrade didn't work for me unless you include "-d" option as sudo do-release-upgrade -d and it worked without problems.


From: Nik at: 2012-05-12 14:38:08

Great guide falko.

 Curious though, has anyone done the 11.10 - 12.04 upgrade with ispconfig 3? Are there any additional steps/gotchas with ispconfig or does it work on paper out of the box.


From: Jardo at: 2012-05-19 19:46:17

Thanx for this howto.

I upgraded 11.10 to 12.04 server 64bit using ssh  with no problems. It took 1 hour.