Upgrading Ubuntu 10.04 LTS to Ubuntu 12.04 LTS

If you are using Ubuntu 10.04 LTS and were expecting Ubuntu 12.04 LTS to be available in the Upgrade Manager, you were wrong. Well, at least I was wrong…

Canonical won’t make it available via the Upgrade Manager in the first release, but only in July with Ubuntu 12.04.1 release, and the company recommends that most LTS users wait until then before upgrading to 12.04.

But if you can’t possibly wait that long, you can run:

do-release-upgrade -d

or

update-manager -d

to upgrade from Ubuntu 10.04 (Lucid Lynx) to Ubuntu 12.04 (aka Precise Pangolin). The first command will run in the terminal, the second will start the Update Manager and allow you to select “New Ubuntu release ‘12.04’ is available”.

For details on why you should NOT upgrade yet, see http://askubuntu.com/questions/125825/upgrading-lts-to-lts-server-why-wait-for-the-first-point-release.

The first time I tried to upgrade I had the following errors:

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade:
The package ‘update-manager’ is marked for removal but it is in the removal blacklist.

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu

If none of this applies, then please report this bug against the ‘update-manager’ package and include the files in /var/log/dist-upgrade/ in the bug report.

The first thing you can do to work around this issue to purge the PPA (Personal Package Archives) if you have any, for example:

sudo apt-get install ppa-purge
sudo ppa-purge xorg-edgers

Your ppa package source lists are located in /etc/apt/source.list.d. I could not remove any, possibly because they had already been disabled by the upgrader.

The next step you can do is to look for broken packages in /var/log/dist-upgrade/apt.log:

cat /var/log/dist-upgrade/apt.log | grep Broken

In my case, after uninstalling xserver-xorg-video-all:

sudo apt-get remove xserver-xorg-video-all

The upgrade process using “do-release-upgrade -d” could continue.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Ubuntu:How to fix the “Unable to calculate upgrade” issue when upgrading from 12.04 to 12.10? – Ubuntu Linux QuestionsInstalling Ubuntu 12.04 LTS in Acer Aspire One D255E Netbook | CNXSoft – Embedded Software Development Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
trackback

[…] SD Card but eventually everything worked fine.I have now upgraded it to Ubuntu 12.04 LTS, using the instructions I posted yesterday. The good news is that WiFi and the SD card worked right after the installation, but Ethernet would […]

trackback

[…] stated here , removing PPA sources does not work every […]