Report forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>: Bug#1094163; Package dpkg.
(Sat, 25 Jan 2025 11:45:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Jochen Sprickerhof <jspricke@debian.org>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Sat, 25 Jan 2025 11:45:02 GMT) (full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: dependency problem with a package that is also virtual
Date: Sat, 25 Jan 2025 12:40:53 +0100
Package: dpkg
Version: 1.22.14
Severity: normal
Hi,
currently in unstable dnsutils depends on bind9-dnsutils which also
Provides: dnsutils. This leads to apt and dpkg disagreeing on what to
install:
$ echo -e 'Package: dummy\nDepends: dnsutils:amd64 (= 1:9.20.4-4)' > control
$ equivs-build control
$ mmdebstrap --verbose --variant=essential --include=./dummy_1.0_all.deb --hook-dir=/usr/share/mmdebstrap/hooks/file-mirror-automount unstable /dev/null
[..]
The following NEW packages will be installed:
bind9-dnsutils bind9-host bind9-libs dummy libbsd0 libcom-err2 libedit2
libfstrm0 libgssapi-krb5-2 libicu72 libidn2-0 libjemalloc2 libjson-c5
libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblmdb0 libmaxminddb0
libnghttp2-14 libprotobuf-c1 libstdc++6 libunistring5 liburcu8t64 libuv1t64
libxml2
[..]
dpkg: dependency problems prevent configuration of dummy:
dummy depends on dnsutils:amd64 (= 1:9.20.4-4); however:
Package dnsutils is not installed.
Version of dnsutils on system, provided by bind9-dnsutils:amd64, is <none>.
dpkg: error processing package dummy (--configure):
dependency problems - leaving unconfigured
Observations:
- apt lists only bind9-dnsutils, not dnsutils to be installed.
- using Depends: dnsutils:amd64 or Depends: dnsutils (= 1:9.20.4-4) in
the dummy package fixes the problem.
The last observation makes me fill this against dpkg but please reassign
if you think that it is wrong.
Note that the reproduce will be gone once #1094159 is fixed. It can
probably be reproduced from snapshot.d.o then.
Cheers Jochen
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.10-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dpkg depends on:
ii libbz2-1.0 1.0.8-6
ii libc6 2.40-6
ii liblzma5 5.6.3-1+b1
ii libmd0 1.1.0-2+b1
ii libselinux1 3.7-3+b1
ii libzstd1 1.5.6+dfsg-2
ii tar 1.35+dfsg-3.1
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 2.9.25
pn debsig-verify <none>
-- no debconf information
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.