UP7 ERROR pkgProblemResolver::Resolve generated breaks

Archived topics about LMDE 1 and LMDE 2
Locked
drcasper

UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by drcasper »

hi,

Im trying to upgrade to UP7 but i get this message:

after $ sudo apt-get upgrade

Code: Select all

Setting up mint-debian-mirrors (2013.09.23) ...
Traceback (most recent call last):
  File "/var/lib/dpkg/info/mint-debian-mirrors.postinst", line 4, in <module>
    import pycurl
ImportError: /usr/lib/pymodules/python2.7/pycurl.so: undefined symbol: _PyTrash_thread_destroy_chain
dpkg: error processing mint-debian-mirrors (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mint-debian-mirrors
E: Sub-process /usr/bin/dpkg returned an error code (1)
after $ sudo apt-get dist-upgrade

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Failed
The following packages have unmet dependencies:
 gstreamer0.10-plugins-good : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or
                                       libjack-0.116
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
/etc/apt/sources.list

Code: Select all

deb http://packages.linuxmint.com/ debian main upstream import
deb http://debian.lth.se/lmde/latest testing main contrib non-free
deb http://debian.lth.se/lmde/latest/security testing/updates main contrib non-free
deb http://debian.lth.se/lmde/latest/multimedia testing main non-free
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
casper956

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by casper956 »

I have the same problem and haven't find the solution yet.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by Monsta »

  1. [url=http://forums.linuxmint.com/viewtopic.php?f=198&t=112836]Forget about apt-get upgrade[/url] and only use apt-get dist-upgrade.
  2. Try

    Code: Select all

    sudo dpkg --configure mint-debian-mirrors
  3. For more info about the unmet dependencies, try

    Code: Select all

    sudo aptitude full-upgrade
drcasper

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by drcasper »

I am not sure if this did it, but i renamed

Code: Select all

/usr/share/python-apt/templates/LinuxMint.mirrors 
to LinuxMint.mirrors.old
and then run

Code: Select all

apt-get dist-upgrade
toad

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by toad »

Suffering from the same problem.

Code: Select all

Setting up mint-debian-mirrors (2013.09.23) ...
Traceback (most recent call last):
  File "/var/lib/dpkg/info/mint-debian-mirrors.postinst", line 4, in <module>
    import pycurl
ImportError: /usr/lib/pymodules/python2.7/pycurl.so: undefined symbol: _PyTrash_thread_destroy_chain
dpkg: error processing mint-debian-mirrors (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mint-debian-mirrors
E: Sub-process /usr/bin/dpkg returned an error code (1)
/usr/share/python-apt/templates/LinuxMint.mirrors didn't exist, so I created it but no joy...
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by Monsta »

Please post the output of:

Code: Select all

apt-cache policy python-pycurl
toad

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by toad »

Code: Select all

toad@laptoad ~ $ apt-cache policy python-pycurl
python-pycurl:
  Installed: 7.19.0-7
  Candidate: 7.19.0-7
  Version table:
 *** 7.19.0-7 0
        500 http://mirror.rts-informatique.fr/linuxmint/debian/latest/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by Monsta »

Try reinstalling it:

Code: Select all

sudo apt-get install --reinstall python-pycurl
and then configure mint-debian-mirrors:

Code: Select all

sudo dpkg --configure mint-debian-mirrors
toad

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by toad »

Thanks very much for your reply. Did the reinstall as you suggested but no improvement. I'm still getting the same error message.

The problem occurs on my Thinkpad T61 only - the update went through fine on my desktop (using the http://tux.rainside.sk/ mirror).

Will experiment further and am always grateful for new suggestions.
quixote

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by quixote »

I had the same error message after sudo apt-get update on a new install of downloaded LMDE 201303 64-bit Mate. This solution worked for me:
drcasper wrote:I am not sure if this did it, but i renamed

Code: Select all

/usr/share/python-apt/templates/LinuxMint.mirrors 
to LinuxMint.mirrors.old
and then run

Code: Select all

apt-get dist-upgrade
Now, I was trying it in a virtual machine. I'm not sure I would have had the courage to do something like that on my production machine! But at least on the VM, it worked.
nbxmike

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by nbxmike »

quixote wrote:I had the same error message after sudo apt-get update on a new install of downloaded LMDE 201303 64-bit Mate. This solution worked for me:
drcasper wrote:I am not sure if this did it, but i renamed

Code: Select all

/usr/share/python-apt/templates/LinuxMint.mirrors 
to LinuxMint.mirrors.old
and then run

Code: Select all

apt-get dist-upgrade
Now, I was trying it in a virtual machine. I'm not sure I would have had the courage to do something like that on my production machine! But at least on the VM, it worked.
Has anyone tested this on a live system, I really don't want to wipe my disk and I have the same problem.
drcasper

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by drcasper »

nbxmike wrote:
quixote wrote:I had the same error message after sudo apt-get update on a new install of downloaded LMDE 201303 64-bit Mate. This solution worked for me:
drcasper wrote:I am not sure if this did it, but i renamed

Code: Select all

/usr/share/python-apt/templates/LinuxMint.mirrors 
to LinuxMint.mirrors.old
and then run

Code: Select all

apt-get dist-upgrade
Now, I was trying it in a virtual machine. I'm not sure I would have had the courage to do something like that on my production machine! But at least on the VM, it worked.
Has anyone tested this on a live system, I really don't want to wipe my disk and I have the same problem.
Yes, i did this on "live installation" not on Virtual Machine
quixote

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by quixote »

Good to know. I've now tried it on a live system, and it worked for me too. :D
pallando

Re: UP7 ERROR pkgProblemResolver::Resolve generated breaks

Post by pallando »

I just ran into this on virtual machine install. I managed to fix it by doing the following

Code: Select all

mv /usr/share/python-apt/templates/LinuxMint.mirrors{,.old}
sudo apt-get install --reinstall python2.7 python-pycurl
This should trigger a reconfigure of mint-debian-mirrors; but if not you can manually do so.

Code: Select all

sudo dpkg --configure mint-debian-mirrors
Hope that helps.
Locked

Return to “LMDE Archive”