Bug#645726: E: Error, pkgProblemResolver::Resolve generated breaks

October 18th, 2011 - 12:40 am ET by Joseph Nahmias | Report spam
Package: apt
Version: 0.8.15.9
Severity: normal

Hello,

When I try to do an apt-get dist-upgrade the automatic problem resolver
seems to get itself into some trouble and can't get out. Note that I do
not have any of these packages set to hold. Following is the output with
Debug::pkgProblemResolver set to true:

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Starting
Starting 2
Investigating (0) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (1) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (1) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (2) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (2) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (3) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (3) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (4) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (4) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (5) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (5) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (6) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (6) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (7) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (7) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (8) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (8) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Investigating (9) odbcinst1debian2 [ i386 ] < 2.2.14p2-2 -> 2.2.14p2-4 > ( libs )
Broken odbcinst1debian2:i386 Breaks on tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs ) (< 0.82-8)
Considering tdsodbc:i386 0 as a solution to odbcinst1debian2:i386 9
Upgrading tdsodbc:i386 due to Breaks field in odbcinst1debian2:i386
Investigating (9) tdsodbc [ i386 ] < 0.82-7 -> 0.82-8 > ( libs )
Broken tdsodbc:i386 Breaks on libiodbc2 [ i386 ] < 3.52.7-2 > ( libs )
Considering libiodbc2:i386 3 as a solution to tdsodbc:i386 0
Holding Back tdsodbc:i386 rather than change libiodbc2:i386
Done
Failed
The following packages have unmet dependencies:
odbcinst1debian2 : Breaks: tdsodbc (< 0.82-8) but 0.82-7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
$ dpkg --get-selections | grep hold
liblucene2-java hold





APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "true";
APT::Install-Suggests "false";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Update "";
APT::Update::Post-Invoke "";
APT::Update::Post-Invoke:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";
APT::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
APT::Default-Release "unstable";
APT::Get "";
APT::Get::Fix-Broken "true";
APT::Get::Show-Upgraded "true";
APT::Get::Purge "true";
APT::Cache-Limit "33554432";
APT::Clean-Installed "false";
APT::Architectures "";
APT::Architectures:: "i386";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::PDiffs "false";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi ";
DPkg::Post-Invoke:: "debsums --generate=nocheck -sp /var/cache/apt/archives";
DPkg::Build-Options "-rfakeroot -b -uc";
Debug "";
Debug::pkgProblemResolver "true";
CommandLine "";
CommandLine::AsString "apt-config dump";





Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii debian-archive-keyring 2010.08.28
ii gnupg 1.4.11-3
ii libc6 2.13-21
ii libgcc1 1:4.6.1-15
ii libstdc++6 4.6.1-15
ii zlib1g 1:1.2.3.4.dfsg-3

apt recommends no packages.

Versions of packages apt suggests:
ii apt-doc <none>
ii aptitude 0.6.4-1.1
ii bzip2 1.0.5-7
ii dpkg-dev 1.16.1.1
ii lzma 4.43-14
ii python-apt 0.8.0




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 David Kalnischkies
October 18th, 2011 - 05:20 am ET | Report spam
reassign 645726 tdsodbc 0.82-8
retitle 645726 tdsodbc Breaks and Recommends libiodbc2 unversioned
thanks

On Tue, Oct 18, 2011 at 06:35, Joseph Nahmias wrote:
When I try to do an apt-get dist-upgrade the automatic problem resolver
seems to get itself into some trouble and can't get out.  Note that I do
not have any of these packages set to hold.



The problem is that the dependencies of tdsodbc are strange:
$ apt-cache show tdsodbc
Package: tdsodbc
Source: freetds
Version: 0.82-8
Replaces: freetds0, libct0, libct1
Depends: libc6 (>= 2.3), odbcinst1debian2 (>= 2.2.11-3), debconf (>0.5) | debconf-2.0, freetds-common
Recommends: libodbc1 | libiodbc2
Conflicts: freetds0, libct0, unixodbc (<< 2.1.1-2)
Breaks: libiodbc2, odbcinst1debian2 (<< 2.2.14p2-3), unixodbc (<< 2.2.14p2-3)

So it Recommends libiodbc2 but it also unconditional Breaks it…
(It is maybe worthwhile to simplify odbcinst1debian2 relations, too)


The message from APT could be better, but this message is a catch-all
at the end and tries to give a reasonable guess (hence the 'may').
As this situation is relatively hard to detect and so uncommon & a bug in
the dependencies i don't think it is worthwhile to add a handler or that,
therefore just a reassigning and not cloning.


Best regards

David Kalnischkies



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics