How to upgrade Ubuntu 11.04 to 12.04

48,513

Solution 1

apt-get update updates the package manager cache of what packages are available. apt-get upgrade upgrades packages that are already installed to newer versions. Neither upgrades to a new release. For that you need to either use the gui update manager, or do-release-upgrade.

You also can not skip releases except from LTS to LTS, so you must first upgrade to 11.10, then to 12.04.

Solution 2

You can force to upgrade the release with:

sudo do-release-upgrade

From 11.04, it will upgrade to 11.10 I think and you do it again to upgrade to 12.04.

Solution 3

I've been using do-release-upgrade on multiple machines through several Ubuntu versions and I've been really happy with the results. A few additional steps have made it even more useful for me.

I often am upgrading remotely and would like to hop into the box being upgraded and check on the progress. You can use "screen" or, my preference, "tmux" to disconnect a remote session then "tmux a" to re-attach and see what's going on.

Just one more point worth mentioning; I frequently am an early adopter using the new version before it's released. Use "do-release-upgrade -d" to upgrade to a development version of Ubuntu.

Solution 4

I have upgraded from 10.04 to 12.04.1 LTS with no problems, simple preferences, and some of the settings may need to be reintegrated; however, for the most part, the OS upgrades without any problems, so as long as you have connection to the internet for when the installer needs something from the net.

Solution 5

You can use the Ubuntu 12.04 LTS installation CD to upgrade from 11.04. Boot from the CD, choose "install Ubuntu" and it should recognize your 11.04 install and ask if you want to upgrade to 12.04. I just did this and it worked flawlessly.

My previous attempt had been to try using the command line (do-release-upgrade) going to 11.10 (successful) and then again to 12,04 (unsuccessful).

Share:
48,513

Related videos on Youtube

Will Sams
Author by

Will Sams

More than 16 years of experience developing solutions for customers. Loves learning and have a passion for open-source technologies. Polyglot but prefer working with Node.js, SQL, NoSQL, and Amazon Web Services.

Updated on September 18, 2022

Comments

  • Will Sams
    Will Sams almost 2 years

    I didn't see this asked elsewhere here, but how does one go about this? I did sudo apt-get update && sudo apt-get upgrade on a laptop last night but it did not upgrade up to the latest release as I expected. What do I need to do?

    In other words: why did it do a partial-upgrade instead of a release-upgrade?

  • Danatela
    Danatela over 10 years
    Note that 'upgrade' in this case means that many packages will be removed. It's better to follow instructions in how to upgrade from unsupported release.