Bug#890546: apt: fails to install library unless two of its deps are explicitly listed
Package: apt
Version: 1.6~alpha7
Severity: normal
I’ve noticed similar behaviour a few times, but this time I could
reproduce it.
Starting point is a cowbuilder chroot (so, without recommends).
I could cowbuilder --login, then:
(pbuild29335-dpo)root@tglase:/# apt-get install libkf5notifications-dev
The following packages have unmet dependencies:
libkf5notifications-dev : Depends: libkf5notifications5 (= 5.42.0-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
OK, so add it…
(pbuild29335-dpo)root@tglase:/# apt-get install libkf5notifications-dev libkf5notifications5
libkf5notifications5 : Depends: phonon4qt5 but it is not going to be installed
OK, again… maybe we’ll see what is wrong eventually…
(pbuild29335-dpo)root@tglase:/# apt-get install libkf5notifications-dev libkf5notifications5 phonon4qt5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
fontconfig fontconfig-config fonts-dejavu-core libasyncns0 libavahi-client3 libavahi-common-data
libavahi-common3 libbsd0 libcups2 libdatrie1 libdbus-1-3 libdbusmenu-qt5-2 libdouble-conversion1
libdrm-amdgpu1 libdrm-common libdrm-dev libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl-mesa0
libegl1 libevdev2 libexpat1 libfam0 libflac8 libfontconfig1 libfreetype6 libgbm1 libgl1 libgl1-mesa-dev
libgl1-mesa-dri libglapi-mesa libgles2 libglib2.0-0 libglu1-mesa libglu1-mesa-dev libglvnd-core-dev
libglvnd-dev libglvnd0 libglx-mesa0 libglx0 libgpm2 libgraphite2-3 libgssapi-krb5-2 libgudev-1.0-0
libharfbuzz0b libice6 libicu57 libinput-bin libinput10 libjpeg62-turbo libk5crypto3 libkeyutils1
libkf5codecs-data libkf5codecs5 libkf5config-bin libkf5config-data libkf5config-dev libkf5config-dev-bin
libkf5configcore5 libkf5configgui5 libkf5coreaddons-data libkf5coreaddons-dev libkf5coreaddons-dev-bin
libkf5coreaddons5 libkf5notifications-data libkf5windowsystem-data libkf5windowsystem-dev libkf5windowsystem5
libkrb5-3 libkrb5support0 libmtdev1 libogg0 libopengl0 libpciaccess0 libpcre2-16-0 libphonon4qt5-4
libpng16-16 libpthread-stubs0-dev libpulse-mainloop-glib0 libpulse0 libqt5concurrent5 libqt5core5a
libqt5dbus5 libqt5gui5 libqt5network5 libqt5printsupport5 libqt5sql5 libqt5test5 libqt5widgets5
libqt5x11extras5 libqt5xml5 libsensors4 libsm6 libsndfile1 libssl1.0.2 libthai-data libthai0 libvorbis0a
libvorbisenc2 libwacom-common libwacom2 libwayland-client0 libwayland-server0 libwrap0 libx11-6 libx11-data
libx11-dev libx11-xcb-dev libx11-xcb1 libxau-dev libxau6 libxcb-dri2-0 libxcb-dri2-0-dev libxcb-dri3-0
libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present-dev
libxcb-present0 libxcb-randr0 libxcb-randr0-dev libxcb-render-util0 libxcb-render0 libxcb-render0-dev
libxcb-shape0 libxcb-shape0-dev libxcb-shm0 libxcb-sync-dev libxcb-sync1 libxcb-util0 libxcb-xfixes0
libxcb-xfixes0-dev libxcb-xinerama0 libxcb-xkb1 libxcb1 libxcb1-dev libxdamage-dev libxdamage1 libxdmcp-dev
libxdmcp6 libxext-dev libxext6 libxfixes-dev libxfixes3 libxi6 libxkbcommon-x11-0 libxkbcommon0 libxml2
libxshmfence-dev libxshmfence1 libxtst6 libxxf86vm-dev libxxf86vm1 mesa-common-dev phonon4qt5-backend-null
qt5-qmake qt5-qmake-bin qtbase5-dev qtbase5-dev-tools qtchooser shared-mime-info ucf x11-common
x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev
x11proto-kb-dev x11proto-xext-dev x11proto-xf86vidmode-dev xkb-data xorg-sgml-doctools xtrans-dev
Suggested packages:
cups-common fam gpm krb5-doc krb5-user pciutils pulseaudio qt5-image-formats-plugins qtwayland5 lm-sensors
libxcb-doc libxext-doc phonon4qt5-backend-gstreamer phonon4qt5-backend-vlc default-libmysqlclient-dev
firebird-dev libegl1-mesa-dev libpq-dev libsqlite3-dev unixodbc-dev
Recommended packages:
dbus libglib2.0-data xdg-user-dirs libkf5config-doc libkf5coreaddons-doc libkf5notifications-doc
libkf5windowsystem-doc kwayland-integration qtwayland5 krb5-locales qttranslations5-l10n libqt5svg5
qt5-gtk-platformtheme libqt5sql5-sqlite | libqt5sql5-mysql | libqt5sql5-odbc | libqt5sql5-psql
| libqt5sql5-tds | libqt5sql5-ibase libwacom-bin libx11-doc libqt5opengl5-dev
The following NEW packages will be installed:
fontconfig fontconfig-config fonts-dejavu-core libasyncns0 libavahi-client3 libavahi-common-data
libavahi-common3 libbsd0 libcups2 libdatrie1 libdbus-1-3 libdbusmenu-qt5-2 libdouble-conversion1
libdrm-amdgpu1 libdrm-common libdrm-dev libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl-mesa0
libegl1 libevdev2 libexpat1 libfam0 libflac8 libfontconfig1 libfreetype6 libgbm1 libgl1 libgl1-mesa-dev
libgl1-mesa-dri libglapi-mesa libgles2 libglib2.0-0 libglu1-mesa libglu1-mesa-dev libglvnd-core-dev
libglvnd-dev libglvnd0 libglx-mesa0 libglx0 libgpm2 libgraphite2-3 libgssapi-krb5-2 libgudev-1.0-0
libharfbuzz0b libice6 libicu57 libinput-bin libinput10 libjpeg62-turbo libk5crypto3 libkeyutils1
libkf5codecs-data libkf5codecs5 libkf5config-bin libkf5config-data libkf5config-dev libkf5config-dev-bin
libkf5configcore5 libkf5configgui5 libkf5coreaddons-data libkf5coreaddons-dev libkf5coreaddons-dev-bin
libkf5coreaddons5 libkf5notifications-data libkf5notifications-dev libkf5notifications5
libkf5windowsystem-data libkf5windowsystem-dev libkf5windowsystem5 libkrb5-3 libkrb5support0 libmtdev1
libogg0 libopengl0 libpciaccess0 libpcre2-16-0 libphonon4qt5-4 libpng16-16 libpthread-stubs0-dev
libpulse-mainloop-glib0 libpulse0 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5
libqt5printsupport5 libqt5sql5 libqt5test5 libqt5widgets5 libqt5x11extras5 libqt5xml5 libsensors4 libsm6
libsndfile1 libssl1.0.2 libthai-data libthai0 libvorbis0a libvorbisenc2 libwacom-common libwacom2
libwayland-client0 libwayland-server0 libwrap0 libx11-6 libx11-data libx11-dev libx11-xcb-dev libx11-xcb1
libxau-dev libxau6 libxcb-dri2-0 libxcb-dri2-0-dev libxcb-dri3-0 libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present-dev libxcb-present0 libxcb-randr0
libxcb-randr0-dev libxcb-render-util0 libxcb-render0 libxcb-render0-dev libxcb-shape0 libxcb-shape0-dev
libxcb-shm0 libxcb-sync-dev libxcb-sync1 libxcb-util0 libxcb-xfixes0 libxcb-xfixes0-dev libxcb-xinerama0
libxcb-xkb1 libxcb1 libxcb1-dev libxdamage-dev libxdamage1 libxdmcp-dev libxdmcp6 libxext-dev libxext6
libxfixes-dev libxfixes3 libxi6 libxkbcommon-x11-0 libxkbcommon0 libxml2 libxshmfence-dev libxshmfence1
libxtst6 libxxf86vm-dev libxxf86vm1 mesa-common-dev phonon4qt5 phonon4qt5-backend-null qt5-qmake
qt5-qmake-bin qtbase5-dev qtbase5-dev-tools qtchooser shared-mime-info ucf x11-common x11proto-core-dev
x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev
x11proto-xext-dev x11proto-xf86vidmode-dev xkb-data xorg-sgml-doctools xtrans-dev
0 upgraded, 183 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/48.8 MB of archives.
After this operation, 250 MB of additional disk space will be used.
Do you want to continue? [Y/n] _
Huh? So it works, with no package removal, pinning, or anything.
So why could apt not figure this out of its own? After all,
quinn-diff on wuiet did (the source package in question was
in Needs-Build, not in BD-Uninstallable; trying to build it
in my chroot resulted in the aforementioned error).
I’ve added a tarball of etc/apt and var/lib/apt/lists from
the chroot, maybe this helps. If you need more info, please
respond quickly, as this will likely go away once I update
the chroot (which I won’t do today, and probably not before
next Monday). In the chroot I had x32 only, no M-A, and only
minbase and build-essential, plus whatever cowbuilder installs
(cowdancer, eatmydata).
Ah well, the attachment failed due to message size, I put it
here: https://evolvis.org/apt.tgz
-- System Information:
Debian Release: buster/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64
Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)
Versions of packages apt depends on:
ii adduser 3.117
ii debian-archive-keyring 2017.7
ii gpgv 2.2.4-3
ii libapt-pkg5.0 1.6~alpha7
ii libc6 2.26-6
ii libgcc1 1:8-20180207-2
ii libgnutls30 3.5.17-1
ii libseccomp2 2.3.1-2.1
ii libstdc++6 8-20180207-2
Versions of packages apt recommends:
ii ca-bundle [ca-certificates] 20170309tarent1
Versions of packages apt suggests:
pn apt-doc <none>
pn aptitude | synaptic | wajig <none>
ii dpkg-dev 1.19.0.5
ii gnupg 2.2.4-3
ii gnupg1 1.4.22-4
ii powermgmt-base 1.31+nmu1
-- no debconf information
Reply to: