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

Asked by Huzvar

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade:
E:Error, pkgProblemResolver::Resolve generated breaks, this may be
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.

Restoring original system state

I have this problem at upgrade from version 10.10 to 11.04.
Can you help me resolve this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Eliah Kagan
Solved:
Last query:
Last reply:
Revision history for this message
Eliah Kagan (degeneracypressure) said :
#1

Please open a Terminal window (Ctrl+Alt+T or Applications > Accessories > Terminal) and run these commands, one after the other. To run a command, paste it into the Terminal and press enter. When running them, you may be prompted for your password. As you enter it, you won't see any placeholder characters (like *). That's OK--just type it in and press enter. If any of these commands reports and error, stop (i.e., don't attempt to run the rest of the commands).

sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade

At this point, select all the text in the Terminal window (Edit > Select All), copy it to the clipboard (Edit > Copy), and paste it here. If those commands succeeded, then close that Terminal window (one way to do this is to type "exit" without the quotes and press enter), open up a new one, and run this command:

sudo do-release-upgrade

Whether or not that command appears to have succeeded, select all the text in the Terminal, copy it to the clipboard, and paste it here. Unless it's more than a few hundred lines, in which case, you should instead paste it at http://paste.ubuntu.com and post a link to it here.

If that command appeared to have succeeded, then the upgrade probably worked--reboot your computer and see.

If at any point there were errors, then please open a (new) Terminal window and run these commands:

lsb_release -a
cat /etc/update-manager/release-upgrades
cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d

(Those commands will not fix the problem, or change anything at all--they'll just provide information that will be useful in figuring out what's wrong.)

Then, as before, select all that text in the Terminal, copy it to the clipboard, and paste it here.

Revision history for this message
Huzvar (huzvar) said :
#2

root@levik:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
root@levik:~# cat /etc/update-manager/release-upgrades
# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
# never - Never check for a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the release that immediately succeeds the currently-running
# release.
# lts - Check to see if a new LTS release is available. The upgrader
# will attempt to upgrade to the first LTS release available after
# the currently-running one. Note that this option should not be
# used if the currently-running release is not itself an LTS
# release, since in that case the upgrader won't be able to
# determine if a newer release is available.
Prompt=normal
root@levik:~# cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://sk.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://sk.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://sk.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://sk.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://sk.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://sk.archive.ubuntu.com/ubuntu/ maverick universe
deb http://sk.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://sk.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://sk.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://sk.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://sk.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://sk.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://sk.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://sk.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository
# deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu lucid main #xorg-edgers PPA
# deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu lucid main #xorg-edgers PPA
root@levik:~# ls -l /etc/apt/sources.list.d
total 36
-rw-r--r-- 1 root root 176 2011-04-29 13:02 karmic-partner.list
-rw-r--r-- 1 root root 176 2011-04-29 12:56 karmic-partner.list.distUpgrade
-rw-r--r-- 1 root root 176 2011-03-09 11:57 karmic-partner.list.save
-rw-r--r-- 1 root root 386 2011-04-29 13:02 opera.list
-rw-r--r-- 1 root root 386 2011-04-29 12:56 opera.list.distUpgrade
-rw-r--r-- 1 root root 386 2011-03-09 11:57 opera.list.save
-rw-r--r-- 1 root root 136 2011-04-29 13:02 ubuntu-wine-ppa-maverick.list
-rw-r--r-- 1 root root 136 2011-04-29 12:56 ubuntu-wine-ppa-maverick.list.distUpgrade
-rw-r--r-- 1 root root 136 2011-03-09 11:57 ubuntu-wine-ppa-maverick.list.save
root@levik:~#

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#3

I had asked for the output of *all* the commands you've ran (even if they didn't give error messages), but I'm guessing you didn't save all that, so we'll work with this for now.

The problem is almost certainly that you need to remove software installed by PPA's (these were listed when you ran "ls -l /etc/apt/sources.list.d"). So, make sure to remove wine1.3, wine1.3-gecko, and winetricks (you might not have all three of those packages installed), as well as opera, plus whatever you have installed from the Karmic partner repository (which hopefully is nothing, since Karmic is not the version of Ubuntu you are currently running). You can do this from the command line, or from the Synaptic Package Manager, or from the Ubuntu Software Center. After removing this software, go into the Update Manager, click Settings..., click Other Software, and unselect all the entries for these PPA's. Then attempt to update.

If you are unclear about how to perform the above actions or they don't work successfully, please post another reply.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

I suggest you run:

sudo rm /etc/apt/sources.list.d/karmic*

You are running Maverick so you don't need those files messing things up

Revision history for this message
Huzvar (huzvar) said :
#5

> sudo rm /etc/apt/sources.list.d/karmic*

dont help

> wine and opera removed...

dont help me too

Revision history for this message
Huzvar (huzvar) said :
#6

I create bug report with logs

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#7

Jean-Baptiste Lallement has posted a solution in your bug report. If you need help implementing it, please feel free to post a reply here.

Revision history for this message
Huzvar (huzvar) said :
#8

Solution posted in bug report dont solve my problem, I post new logs

Revision history for this message
Best Eliah Kagan (degeneracypressure) said :
#9

I was about to reply, but I saw that Jean-Baptiste Lallement has posted again in the bug to further address your situation. If you need help following his instructions (for example, if you need help with ppa-purge), please feel free to post again here. Otherwise, it seems that the situation is under control due to assistance being provided/received in the bug.

Revision history for this message
Huzvar (huzvar) said :
#10

Thanks Eliah Kagan, that solved my question.

Revision history for this message
Stefan Daenzer (tisch) said :
#11

Hi,

I have the same problem, but I guess there are different ppa packages messing up the update.

I will follow the steps given by Jean-Baptiste. Here is the output of my console after running sudo apt-get update, sudo apt-get -y upgrade and sudo apt-get -y upgrade

tisch@tisch-Precision-M6500:~$ sudo apt-get update
[sudo] password for tisch:
Hit http://de.archive.ubuntu.com maverick Release.gpg
Ign http://de.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://de.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://archive.ubuntu.com maverick Release.gpg
Ign http://de.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://de.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://de.archive.ubuntu.com maverick-updates Release.gpg
Ign http://de.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://de.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://de.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://de.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Hit http://security.ubuntu.com maverick-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US
Hit http://de.archive.ubuntu.com maverick Release
Hit http://archive.ubuntu.com maverick Release
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US
Hit http://security.ubuntu.com maverick-security Release
Hit http://de.archive.ubuntu.com maverick-updates Release
Hit http://archive.ubuntu.com maverick/main Sources
Hit http://security.ubuntu.com maverick-security/main Sources
Hit http://de.archive.ubuntu.com maverick/main Sources
Hit http://archive.ubuntu.com maverick/restricted Sources
Hit http://de.archive.ubuntu.com maverick/universe Sources
Hit http://security.ubuntu.com maverick-security/universe Sources
Hit http://security.ubuntu.com maverick-security/main amd64 Packages
Hit http://security.ubuntu.com maverick-security/universe amd64 Packages
Hit http://de.archive.ubuntu.com maverick/main amd64 Packages
Hit http://de.archive.ubuntu.com maverick/universe amd64 Packages
Hit http://de.archive.ubuntu.com maverick-updates/main Sources
Hit http://de.archive.ubuntu.com maverick-updates/universe Sources
Hit http://de.archive.ubuntu.com maverick-updates/main amd64 Packages
Hit http://de.archive.ubuntu.com maverick-updates/universe amd64 Packages
Reading package lists... Done
tisch@tisch-Precision-M6500:~$ sudo apt-get -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tisch@tisch-Precision-M6500:~$ sudo apt-get -y dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tisch@tisch-Precision-M6500:~$

The output of sudo do-release-upgrade is given below.Ign http://de.archive.ubuntu.com/ubuntu/ natty/main Translation-en
Ign http://de.archive.ubuntu.com/ubuntu/ natty/universe Translation-en
Get:2 http://security.ubuntu.com natty-security Release.gpg [198B]
Ign http://security.ubuntu.com/ubuntu/ natty-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ natty-security/universe Translation-en
Get:3 http://archive.ubuntu.com natty Release.gpg [198B]
Get:4 http://de.archive.ubuntu.com natty-updates Release.gpg [198B]
Ign http://de.archive.ubuntu.com/ubuntu/ natty-updates/main Translation-en
Ign http://de.archive.ubuntu.com/ubuntu/ natty-updates/universe Translation-en
Get:5 http://de.archive.ubuntu.com natty Release [39.8kB]
Get:6 http://security.ubuntu.com natty-security Release [27.2kB]
Get:7 http://archive.ubuntu.com natty Release [39.8kB]
Get:8 http://de.archive.ubuntu.com natty-updates Release [27.2kB]
Get:9 http://security.ubuntu.com natty-security/main Sources [10.8kB]
Get:10 http://de.archive.ubuntu.com natty/main Sources [862kB]
Get:11 http://security.ubuntu.com natty-security/universe Sources [3152B]
Get:12 http://security.ubuntu.com natty-security/main amd64 Packages [32.9kB]
Get:13 http://archive.ubuntu.com natty/main Sources [862kB]
Get:14 http://security.ubuntu.com natty-security/universe amd64 Packages [12.4kB]
Get:15 http://de.archive.ubuntu.com natty/universe Sources [4380kB]
Get:16 http://archive.ubuntu.com natty/restricted Sources [4104B]
Get:17 http://de.archive.ubuntu.com natty/main amd64 Packages [1550kB]
Get:18 http://de.archive.ubuntu.com natty/universe amd64 Packages [6004kB]
Get:19 http://de.archive.ubuntu.com natty-updates/main Sources [37.9kB]
Get:20 http://de.archive.ubuntu.com natty-updates/universe Sources [9682B]
Get:21 http://de.archive.ubuntu.com natty-updates/main amd64 Packages [124kB]
Get:22 http://de.archive.ubuntu.com natty-updates/universe amd64 Packages [45.4kB]
Fetched 14.1MB in 6s (217kB/s)

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

Calculating the changes

Calculating the changes

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade:
E:Error, pkgProblemResolver::Resolve generated breaks, this may be
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.

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
=== Command detached from window (Tue Jun 7 17:55:04 2011) ===
=== Command terminated with exit status 1 (Tue Jun 7 17:55:04 2011) ===

The output of:

lsb_release -a
cat /etc/update-manager/release-upgrades
cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d

is given below:

tisch@tisch-Precision-M6500:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
tisch@tisch-Precision-M6500:~$ cat /etc/update-manager/release-upgrades
# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
# never - Never check for a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the release that immediately succeeds the currently-running
# release.
# lts - Check to see if a new LTS release is available. The upgrader
# will attempt to upgrade to the first LTS release available after
# the currently-running one. Note that this option should not be
# used if the currently-running release is not itself an LTS
# release, since in that case the upgrader won't be able to
# determine if a newer release is available.
Prompt=normal
tisch@tisch-Precision-M6500:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted
deb-src http://archive.ubuntu.com/ubuntu maverick main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://de.archive.ubuntu.com/ubuntu/ maverick main universe
deb-src http://de.archive.ubuntu.com/ubuntu/ maverick main universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ maverick-updates main universe
deb-src http://de.archive.ubuntu.com/ubuntu/ maverick-updates main universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://de.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu maverick main
# deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://security.ubuntu.com/ubuntu maverick-security main universe
deb-src http://security.ubuntu.com/ubuntu maverick-security main universe #Added by software-properties
tisch@tisch-Precision-M6500:~$ ls -l /etc/apt/sources.list.d
total 60
-rw-r--r-- 1 root root 52 2011-06-07 17:39 dropbox.list
-rw-r--r-- 1 root root 52 2011-06-07 17:33 dropbox.list.distUpgrade
-rw-r--r-- 1 root root 52 2011-06-07 17:24 dropbox.list.save
-rw-r--r-- 1 root root 144 2011-06-07 17:39 fkrull-deadsnakes-maverick.list
-rw-r--r-- 1 root root 144 2011-06-07 17:33 fkrull-deadsnakes-maverick.list.distUpgrade
-rw-r--r-- 1 root root 144 2011-06-07 17:24 fkrull-deadsnakes-maverick.list.save
-rw-r--r-- 1 root root 178 2011-06-07 17:39 google-chrome.list
-rw-r--r-- 1 root root 178 2011-06-07 17:33 google-chrome.list.distUpgrade
-rw-r--r-- 1 root root 178 2011-06-07 17:24 google-chrome.list.save
-rw-r--r-- 1 root root 182 2011-06-07 17:39 google-talkplugin.list
-rw-r--r-- 1 root root 182 2011-06-07 17:33 google-talkplugin.list.distUpgrade
-rw-r--r-- 1 root root 182 2011-06-07 17:24 google-talkplugin.list.save
-rw-r--r-- 1 root root 181 2011-06-07 17:39 maverick-partner.list
-rw-r--r-- 1 root root 181 2011-06-07 17:33 maverick-partner.list.distUpgrade
-rw-r--r-- 1 root root 181 2011-06-07 17:24 maverick-partner.list.save
tisch@tisch-Precision-M6500:~$

Note the I have removed the packages and sources for dropbox, deadsnakes, chrome and talk-plugin in the package manager. Am I missing something?

Thanks for your help in advance,

Stefan

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#12

"Note the I have removed the packages and sources for dropbox, deadsnakes, chrome and talk-plugin in the package manager. Am I missing something?"

Did you remove them before or after the results you showed, from "ls -l /etc/apt/sources.list.d"?

If you removed them before that, then it looks like they were not really removed. If you removed them after, then perhaps they really were removed.

In either case, you should actually not have them removed yet (so if they were removed, put them back). You should use ppa-purge, so that they are removed, but where the all the software installed from them is also removed. (You can probably reinstall this software, or later versions of it, after completing the upgrade to Natty.) See https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/775370/comments/21, and feel free to ask for more help if you have difficulty with this.

(Normally, it is best to start your own question when you experience problems similar to those described in an already-Solved question. In this case, however, I'm subscribed to the question and I happened to see your post, and the topic is very similar, so we can roll with it here for a while.)

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#13

@Mark Jones
I see you have just unlinked bug 775370 from this question. I am putting it back, since they are definitely related, and someone who searches the web and finds bug 775370 may benefit from the information in this question (and vice versa). If you believe this question and that bug should not be linked, please explain.