[Bug 940396] Re: lucid -> precise main all failed to upgrade: dpkg: dependency problems prevent configuration of kde-runtime
Michael Vogt
michael.vogt at ubuntu.com
Mon Mar 12 15:46:18 UTC 2012
I can finally reproduce this now with the lp:~mvo/+junk/test-case-
lp940396 branch and the lp:~mvo/apt/debian-experimental2 branch:
"./run.sh /path/to/debian-experimental2/build/bin/apt-get" triggers it
for me.
There are various workaround:
- add versionized dependency of libsmbclient (>= 2:3.6.3) to kde-runtime that ensures libsmbclient is unpacked early
- add breaks to kde-runtime against libsmbclient (<= 2:3.6.1) (just like libkrb5-3)
But of course those are workaround not fixes.
One fix that works for me is to do:
=== modified file 'apt-pkg/packagemanager.cc'
--- apt-pkg/packagemanager.cc 2012-03-07 08:20:31 +0000
+++ apt-pkg/packagemanager.cc 2012-03-12 15:08:19 +0000
@@ -742,7 +742,7 @@
}
if (PkgLoop == false)
List->Flag(Pkg,pkgOrderList::Loop);
- SmartUnPack(BrokenPkg, false, Depth + 1);
+ SmartUnPack(BrokenPkg, true, Depth + 1);
if (PkgLoop == false)
List->RmFlag(Pkg,pkgOrderList::Loop);
}
So essentially calling unpack with immediately configure to ensure that the package is fully ready early. But that is
slightly risky as it will have side-effects beyond this one bug. It does work for me though.
I'm looking into more possible solutions.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/940396
Title:
lucid -> precise main all failed to upgrade: dpkg: dependency problems
prevent configuration of kde-runtime
Status in “apt” package in Ubuntu:
Confirmed
Status in “apt” source package in Precise:
Confirmed
Bug description:
lucid to precise upgrade - main all - amd64/i386
upgrade failed with:
Setting up plasma-scriptengine-javascript (4:4.8.0-0ubuntu1) ...
dpkg: dependency problems prevent configuration of kde-runtime:
kde-runtime depends on libsmbclient (>= 2:3.2.0); however:
Package libsmbclient is not configured yet.
dpkg: error processing kde-runtime (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
kde-runtime
http://10.189.74.2:8080/job/precise-upgrade-lucid-
main/ARCH=i386,LTS=lts,PROFILE=main-all,label=upgrade-test/33/
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/940396/+subscriptions
More information about the foundations-bugs
mailing list