ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'

Asked by KK

 Upgrade from 8.04 to 10.04 FAILED !!! Pls help !!!
I have problem to upgrade from 8.04 to 10.04 (using the CD burned with downloaded 386-iso, have check md5sum which is correct)

I have all latest update installed.

I have also read some other posts try to remove the ERROR reported (in this case seems to be
2010-05-01 13:47:16,729 ERROR html widget
Traceback (most recent call last):
File "/tmp/tmp.blmGi13183/DistUpgradeViewGtk.py", line 404, in __init__
import webkit
ImportError: No module named webkit)

but I have no idea how to do it.

The error that I had found in the var/log/dist-upgrade/main.log are as following :

Any advise to solve this is very much appreciated.

Thanks

2010-05-01 13:47:16,297 INFO Using config files '['./DistUpgrade.cfg.hardy']'
2010-05-01 13:47:16,297 INFO uname information: 'Linux blissful 2.6.24-27-generic #1 SMP Wed Mar 24 10:04:52 UTC 2010 i686'
2010-05-01 13:47:16,297 INFO creating state file with '['tar', '-z', '-c', '-f', '/var/log/dist-upgrade/system_state.tar.gz', '/etc/apt/sources.list', '/etc/apt/sources.list.d/', '/var/lib/dpkg/status']'
2010-05-01 13:47:16,474 INFO release-upgrader version '0.134.7' started
2010-05-01 13:47:16,729 DEBUG svg pixbuf loader failed (Error displaying image)
2010-05-01 13:47:16,729 ERROR html widget
Traceback (most recent call last):
File "/tmp/tmp.blmGi13183/DistUpgradeViewGtk.py", line 404, in __init__
import webkit
ImportError: No module named webkit
2010-05-01 13:47:16,743 DEBUG Using 'DistUpgradeViewGtk' view

(some logs in between)

2010-05-01 13:47:42,392 DEBUG doUpdate() will not use the network because self.useNetwork==false
2010-05-01 13:47:42,393 DEBUG openCache()
2010-05-01 13:47:42,771 DEBUG /openCache(), new cache size 2289
2010-05-01 13:47:42,771 DEBUG needServerMode(): run in 'desktop' mode, (because of pkg 'ubuntu-desktop')
2010-05-01 13:48:24,805 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
2010-05-01 13:48:24,805 DEBUG abort called
2010-05-01 13:48:24,807 DEBUG openCache()
2010-05-01 13:48:27,829 DEBUG /openCache(), new cache size 25405
2010-05-01 13:48:27,830 DEBUG enabling apt cron job

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
KK
Solved:
Last query:
Last reply:
Revision history for this message
Narendra D (narendra-diwate) said :
#1

Hope you are using the Alternate-install CD for the upgrade. That's the only supported way. Dont use the Desktop CD. Do you have webkit installed. An upgrade can break if the system cannot find packages for currently installed ones.Suggest you to remove such packages before attempting an upgrade.

Or if you can backup all your data and do a fresh install, there is very little chance of anything breaking.

Revision history for this message
KK (kkfok1) said :
#2

Thank you for your response to my problem. I have used synaptic to search but not able to find the widget or webkit application. In this case, how do I know which application to be removed ?

Revision history for this message
Narendra D (narendra-diwate) said :
#3

if you can backup all your data and do a fresh install, there is very little chance of anything breaking

Revision history for this message
KK (kkfok1) said :
#4

This will mean that I have to reinstall all application 1 by 1 again, a bit painful. Because this is LTS so after two years of usage, there were quite a fair bit of things being customised. What a pain !

Revision history for this message
delance (olivier-delance) said :
#5

Hello, upgrading from 8.04 to 10.04 is not possible.

The simplest is:
    - make a backup on USB disk of directory /home
    - reinstall fully with Ubuntu 10.04 (the best would be to have a distinct partition for /home, so next time you will not have to do a backup)
    - restore /home directory
If you are lucky, the new version of software will recognize old configuration file and will update to new ones.
If you are unlucky, you can go back to previous state by reinstalling system.

Another solution would be to install fully previous LTS version 8.10 with same procedure, and to upgrade all used software. And then to repeat operation with Ubuntu 10.04. The upgrade of all software under LTS 8.10 should lead you to a point closed from LTS 10.04.

Revision history for this message
delance (olivier-delance) said :
#6

Hello, if question is closed, could you mark it "solved", please ?

Revision history for this message
KK (kkfok1) said :
#7

I thought LTS version is 8.04 instead of 8.10, please correct me. So, I am still waiting for a solution to upgrade from LTS8.04 to LTS10.04 by using the Alternative CD. Thanks.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8
Revision history for this message
Vu Do Quynh (vu-do-quynh) said :
#9

Hi,

For your information, webkit is a module for Python (a programmation language). So the Python script (line 404) is trying to import the module webkit but cannot find it.

This is how I did to upgrade directly from 8.04 LTS to 10.04 LTS : I followed the instructions provided on the page that marcobra provided : https://help.ubuntu.com/community/LucidUpgrades#Upgrade

1) You need to update all the necessary packages on your 8.04 distribution
2) Insert your alternate CD in the computer, it will ask you if you want to upgarde your computer => answer yes
3) follow the instructions (usually press OK or Next to most of all the questions asked)

You do not necessarily needs a working internet connection (in this case answer accordingly when asked by the script if you want to download updates from the internet), but it is better (as long as you have a decent connection speed).

Hope that helps

Revision history for this message
KK (kkfok1) said :
#10

Thank you both of you. Basically I have tried the above steps about a month ago. The only different is that time there wasn't a link in the Alternate CD section and now there is. Last time I downloaded the alternate CD from a ftp site which could still be a beta. Tonite, I'll try again and will update if I got this solve.

Thanks

Revision history for this message
KK (kkfok1) said :
#11

If I really need to do a fresh installation of 10.04, does it mean that I have to reinstall all the applications ? or there is a less painful way ?

Thanks

Revision history for this message
Vu Do Quynh (vu-do-quynh) said :
#12

Hi,

Usually, doing a fresh install and reinstalling applications is better than upgrading. It depends on which type of applications you have installed and with what means (synaptic ? or tar.gz, or deb outside repositories ?). You may wish to do backup of your /etc/apt/sources.lst file and of other tertiary sources. Backup your essential data (much more important than resinstalling applications).

I was told that if you have not separated your /home from your root directory /, not checking the formatting option would not write over your /home. But I have not experienced that and I don't know how much clean the install would be if there is no formatting of the / directory.

before installing a version, always check that it works OK with your hardware before installing it. That is also true for upgrading from 8.04 direct to 10.04 ! Do not forget to test with a live CD 10.04 before installing fresh or upgrading.

Hope that helps.

Revision history for this message
KK (kkfok1) said :
#13

Thank you for your suggestion. Last night I realised that the alternate CD for Lucid is the same as what I have used a month ago i.e. 27th April. The current link of the alternate CD has been pointed to 10.10 Maverick.

Looks like I only have one choice that is to reinstall Lucid from fresh and reinstall all applications, what a painful way.The major reason for upgrade to Lucid is due to some of the applications that I intend to use only available to version after 8.04.

Anyway, thanks for all the replies. Will do the reinstall this weekend and hope everything going well.

Revision history for this message
KK (kkfok1) said :
#14

Finally get Lucid installed (not upgrade). My problem is considered solve, but the upgrading problem is not solved !!!