2016-04-26

Problems when upgrade Ubuntu 10.10 to 11.04

If you want to upgrade Ubuntu 10.10 to Ubuntu 11.04 you might get stuck with the following problem:

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade:

E:Error, pkgProblemResolver::Resolve generated breaks, caused by held packages.

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.


There is a Bug on Launchpad
( https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/775289 ) which describes the problem and helped me to find a solution.

The problem had to do with Ubuntu 10.04 and newer versions of files there which made it impossible for the update-manager ( or do-release-upgrade in terminal ) to find a valid state because of broken dependencies.

So if you look at /var/log/dist-upgrade/apt.log and search for 10.04 you will find the packages which make troubles.

I had to manually download the following packages from
http://old-releases.ubuntu.com/ubuntu/pool/main/n/nspr/libnspr4-0d_4.8.6-0ubuntu1_i386.deb
http://old-releases.ubuntu.com/ubuntu/pool/main/n/nss/libnss3-1d_3.12.9+ckbi-1.82-0ubuntu0.10.10.3_i386.deb
http://old-releases.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-headless_6b20-1.9.13-0ubuntu1~10.10.1_i386.deb
http://old-releases.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-lib_6b20-1.9.13-0ubuntu1~10.10.1_all.deb

In terminal in the directory where you downloaded the files you can install them with:

sudo dpkg -i filename1 filename2 ...

After that the upgrade went smooth!

No comments: