Discussion:
Bug#1077590: adequate: dpkg -L error
Add Reply
Sebastian Ramacher
2024-07-30 09:00:01 UTC
Reply
Permalink
Package: adequate
Version: 0.16.5
Severity: normal
X-Debbugs-Cc: ***@debian.org

Recently, running adequate during apt upgrades started failing:

2024/07/30 10:46:11 "dpkg -L libcupsfilters1t64 cups-browsed adequate ben libben-ocaml cups-filters-core-drivers libfontembed1t64 cups-filters libswscale8 libavdevice61 libavformat61 libavfilter10 libavcodec61 libavutil59 libplacebo349 libpostproc58 libswresample5 librabbitmq-dev librabbitmq4 libx264-dev libx264-164 libx264-164 cyanrip python3-docutils docutils-common ffmpeg firefox libgstreamer1.0-0 libgstreamer1.0-0 gir1.2-gstreamer-1.0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-gtk3 gstreamer1.0-libav gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-base libgstreamer-plugins-bad1.0-0 libde265-0 libde265-0 gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-x handbrake heif-gdk-pixbuf libheif-plugin-dav1d libheif-plugin-dav1d heif-thumbnailer libheif1 libheif1 libheif-plugin-libde265 libheif-plugin-libde265 libasound2-plugins libasound2-plugins libavutil59 libswresample5 libavcodec61 libswscale-dev libavformat-dev libavcodec-dev libswresample-dev libpostproc-dev libavutil-dev libbluetooth3 libdaxctl1 libdovi3 libfreerdp-client3-3 libfreerdp3-3 libwinpr3-3 libio-stringy-perl libkf5filemetadata3 libndctl6 libplacebo-dev libqt6multimedia6 limnoria linux-headers-6.9.12-common linux-image-6.9.12-amd64 linux-kbuild-6.9.12 linux-headers-6.9.12-amd64 linux-headers-amd64 linux-image-amd64 mpv node-ajv node-lru-cache terser node-terser python3-sympy libplacebo-dev:amd64 libwinpr3-3:amd64 linux-headers-6.9.12-common libgstreamer1.0-0:amd64 gstreamer1.0-plugins-ugly:amd64 libde265-0:amd64 libdovi3:amd64 libheif-plugin-dav1d:i386 libheif1:amd64 libkf5filemetadata3:amd64 libpostproc58:amd64 cups-filters-core-drivers linux-image-6.9.12-amd64 python3-docutils libswresample5:amd64 firefox gstreamer1.0-plugins-bad:amd64 libfreerdp-client3-3:amd64 libqt6multimedia6:amd64 linux-kbuild-6.9.12 ffmpeg libheif-plugin-libde265:i386 libswresample-dev:amd64 libavcodec-dev:amd64 libavcodec61:i386 libavutil59:i386 libfreerdp3-3:amd64 libswresample5:i386 heif-thumbnailer libavfilter10:amd64 libben-ocaml libswscale8:amd64 node-terser gstreamer1.0-x:amd64 librabbitmq-dev:amd64 libheif-plugin-libde265:amd64 libavdevice61:amd64 libavutil-dev:amd64 libavutil59:amd64 libx264-164:amd64 libx264-164:i386 cups-browsed linux-image-amd64 libheif1:i386 gstreamer1.0-tools libdaxctl1:amd64 libgstreamer-plugins-base1.0-0:i386 libswscale-dev:amd64 linux-headers-6.9.12-amd64 linux-headers-amd64 gstreamer1.0-pulseaudio:amd64 gstreamer1.0-libav:amd64 libavcodec61:amd64 libbluetooth3:amd64 libcupsfilters1t64:amd64 libplacebo349:amd64 libpostproc-dev:amd64 mpv gstreamer1.0-gtk3:amd64 libavformat61:amd64 libfontembed1t64:amd64 libgstreamer-gl1.0-0:amd64 librabbitmq4:amd64 handbrake gstreamer1.0-plugins-base:amd64 gstreamer1.0-plugins-good:amd64 docutils-common cyanrip libde265-0:i386 libgstreamer-plugins-bad1.0-0:amd64 libgstreamer1.0-0:i386 libndctl6:amd64 node-ajv node-lru-cache cups-filters heif-gdk-pixbuf:amd64 libasound2-plugins:amd64 libgstreamer-plugins-base1.0-0:amd64 libheif-plugin-dav1d:amd64 python3-sympy gir1.2-gstreamer-1.0:amd64 ben gir1.2-gst-plugins-base-1.0:amd64 libasound2-plugins:i386 libavformat-dev:amd64 libio-stringy-perl libx264-dev:amd64 limnoria adequate terser" failed: exit status 2
adequate: failed to run debconf frontend: exit status 1


Running the dpkg invocation manually indeed fails:

dpkg-query: error: --listfiles needs a valid package name but 'libavcodec61' is not: ambiguous package name 'libavcodec61' with more than one installed instance

Cheers


-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (650, 'unstable-debug'), (650, 'unstable'), (601, 'testing'), (600, 'experimental-debug'), (600, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.9.9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages adequate depends on:
ii debconf 1.5.87
ii libc6 2.39-6

Versions of packages adequate recommends:
ii pkgconf 1.8.1-3

adequate suggests no packages.

-- Configuration Files:
/etc/apt/apt.conf.d/20adequate changed [not included]

-- no debconf information
--
Sebastian Ramacher
Serafeim Zanikolas
2024-07-30 12:30:02 UTC
Reply
Permalink
thanks Sebastian for the report.

that'd be because your have installed all of:
libavcodec61, libavcodec61:i386, libavcodec61:amd64

it sounds like adequate should drop foo in the presence of any foo:arch
Sebastian Ramacher
2024-07-30 13:30:02 UTC
Reply
Permalink
Hi
Post by Serafeim Zanikolas
thanks Sebastian for the report.
libavcodec61, libavcodec61:i386, libavcodec61:amd64
No, I don't. I have libavcodec61:amd64 (native arch) and
libavcoded61:i386 installed.

Cheers
Post by Serafeim Zanikolas
it sounds like adequate should drop foo in the presence of any foo:arch
--
Sebastian Ramacher
Sebastian Ramacher
2024-08-19 16:40:01 UTC
Reply
Permalink
Control: reopen -1
Control: fixed -1 0.16.6
Post by Sebastian Ramacher
Hi
Post by Serafeim Zanikolas
thanks Sebastian for the report.
libavcodec61, libavcodec61:i386, libavcodec61:amd64
No, I don't. I have libavcodec61:amd64 (native arch) and
libavcoded61:i386 installed.
right, that's fine. the problem is that, given any libavcoded61:arch installed
package, dpkg -L additionally reports libavcodec61, and that latter one is
ambiguous in the face of two different arch ones
Post by Sebastian Ramacher
Post by Serafeim Zanikolas
it sounds like adequate should drop foo in the presence of any foo:arch
this change was implemented in 0.16.6. marking as fixed, but please do reopen if
the issue persists for you
It still fails:

2024/08/19 18:35:14 "dpkg -L ntfs-3g libntfs-3g89t64 gcc-14-base gcc-14-base libstdc++6 libstdc++6 libgomp1 libgomp1 libgcc-s1 libgcc-s1 libatomic1 libatomic1 libcc1-0 libitm1 libasan8 liblsan0 libtsan2 libubsan1 libhwasan0 libquadmath0 libgfortran5 libgfortran-14-dev gfortran-14-x86-64-linux-gnu gfortran-14 gcc-14 g++-14 g++-14-x86-64-linux-gnu libstdc++-14-dev libgcc-14-dev gcc-14-x86-64-linux-gnu cpp-14-x86-64-linux-gnu cpp-14 libobjc4 lib32gcc-s1 lib32stdc++6 libuno-sal3t64 libuno-salhelpergcc3-3t64 libuno-cppu3t64 libuno-purpenvhelpergcc3-3t64 ure libuno-cppuhelpergcc3-3t64 uno-libs-private libreoffice-calc libreoffice-impress libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-writer python3-uno libreoffice-math libreoffice libreoffice-base-core libreoffice-base libreoffice-core libreoffice-base-drivers libreoffice-report-builder-bin node-cliui python3-aiohttp libgcc-s1:amd64 libstdc++6:amd64 python3-uno node-cliui ntfs-3g libgomp1:i386 libstdc++6:i386 libuno-cppuhelpergcc3-3t64 libuno-sal3t64 liblsan0:amd64 libntfs-3g89t64:amd64 libreoffice-gtk3 libreoffice-writer libuno-salhelpergcc3-3t64 libatomic1:i386 libgfortran5:amd64 libreoffice-base-drivers uno-libs-private lib32stdc++6 libreoffice python3-aiohttp libasan8:amd64 libreoffice-core libuno-cppu3t64 libuno-purpenvhelpergcc3-3t64 gcc-14-base:i386 gfortran-14 gfortran-14-x86-64-linux-gnu g++-14-x86-64-linux-gnu gcc-14-x86-64-linux-gnu lib32gcc-s1 cpp-14-x86-64-linux-gnu gcc-14-base:amd64 libgfortran-14-dev:amd64 libobjc4:amd64 libstdc++-14-dev:amd64 libreoffice-calc libreoffice-draw libreoffice-impress libreoffice-report-builder-bin gcc-14 libatomic1:amd64 libreoffice-base libcc1-0:amd64 libgcc-s1:i386 libreoffice-math libreoffice-gnome cpp-14 g++-14 libitm1:amd64 libquadmath0:amd64 libtsan2:amd64 ure libreoffice-base-core libubsan1:amd64 libgcc-14-dev:amd64 libgomp1:amd64 libhwasan0:amd64" failed: exit status 2

Note the occurences of gcc-14-base: two times without archi qualifieres
(incorrect), once with :amd64 and :i386 (correct).

Cheers
--
Sebastian Ramacher
Serafeim Zanikolas
2024-08-20 22:30:01 UTC
Reply
Permalink
hi Sebastian,
Post by Sebastian Ramacher
Control: reopen -1
[..]
Post by Sebastian Ramacher
Note the occurences of gcc-14-base: two times without archi qualifieres
(incorrect), once with :amd64 and :i386 (correct).
thanks for reopening and for the provided details.

I've uploaded a fix as 0.16.15 in experimental. please confirm whether that
works for you.

thanks again,
Serafeim
Sebastian Ramacher
2024-08-23 17:40:02 UTC
Reply
Permalink
Post by Serafeim Zanikolas
hi Sebastian,
Post by Sebastian Ramacher
Control: reopen -1
[..]
Post by Sebastian Ramacher
Note the occurences of gcc-14-base: two times without archi qualifieres
(incorrect), once with :amd64 and :i386 (correct).
thanks for reopening and for the provided details.
I've uploaded a fix as 0.16.15 in experimental. please confirm whether that
works for you.
It doesn't:

2024/08/23 19:28:44 "dpkg -L mupdf-tools python3-sqlalchemy libkf6wallet-data libmupdf-dev libstring-license-perl libgtksourceview-3.0-1 sphinx-common libkf6walletbackend6 python3-sphinx kwallet6 libldap-2.5-0 libgtksourceview-3.0-common libregexp-pattern-license-perl xdg-dbus-proxy libpython3.12-minimal libctf-nobfd0 libatk1.0-dev libkf6windowsystem6 libatk-bridge2.0-0t64 python3-scipy python3-setuptools-whl python3.12 gir1.2-atspi-2.0 libkf6wallet6 pipewire shntool libselinux1-dev libsframe1 initramfs-tools-core binutils-common libspa-0.2-dev libatspi2.0-dev python3-lib2to3 libpython3.12t64 libbinutils libdebhelper-perl needrestart python3.12-dev aptitude binutils libatk1.0-0t64 libatk-bridge2.0-dev python3-sqlalchemy-ext libkf6windowsystem-data pipewire-pulse libspa-0.2-modules mawk debhelper initramfs-tools libselinux1 gir1.2-atk-1.0 libpipewire-0.3-dev python3-sqlparse python3-sympy libpython3.12-dev at-spi2-common libgprofng0 binutils-x86-64-linux-gnu libldap-common pipewire-bin python3-pkg-resources python3.12-minimal iproute2 libctf0 libpipewire-0.3-0t64 python3-setuptools libpython3.12-stdlib libatspi2.0-0t64 ldap-utils aptitude-common libjs-sphinxdoc libpipewire-0.3-modules initramfs-tools libkf6windowsystem-data libspa-0.2-dev:amd64 python3-sqlalchemy libstring-license-perl python3-sqlalchemy-ext:amd64 aptitude initramfs-tools-core ldap-utils libkf6wallet-data libpipewire-0.3-modules:amd64 libsframe1:amd64 libgprofng0:amd64 libjs-sphinxdoc libatspi2.0-dev:amd64 libdebhelper-perl libkf6windowsystem6:amd64 libldap-common python3-sphinx python3.12-dev libbinutils:amd64 libmupdf-dev libpython3.12-dev:amd64 libregexp-pattern-license-perl libselinux1:i386 python3-pkg-resources iproute2 libctf-nobfd0:amd64 libldap-2.5-0:amd64 libldap-2.5-0:i386 python3.12 libatk-bridge2.0-dev:amd64 libatk1.0-dev:amd64 pipewire:amd64 python3-scipy python3-sqlparse libatspi2.0-0t64:amd64 libgtksourceview-3.0-1:amd64 libpython3.12t64:amd64 libselinux1:amd64 libspa-0.2-modules:amd64 python3-lib2to3 libkf6wallet6:amd64 libpython3.12-minimal:amd64 python3.12-minimal shntool binutils-common:amd64 needrestart python3-setuptools libpipewire-0.3-dev:amd64 pipewire-bin pipewire-pulse python3-sympy libatk1.0-0t64:amd64 at-spi2-common debhelper kwallet6 libpython3.12-stdlib:amd64 python3-setuptools-whl sphinx-common aptitude-common binutils gir1.2-atk-1.0:amd64 libctf0:amd64 libselinux1-dev:amd64 mupdf-tools libgtksourceview-3.0-common libkf6walletbackend6:amd64 binutils-x86-64-linux-gnu gir1.2-atspi-2.0:amd64 libatk-bridge2.0-0t64:amd64 libpipewire-0.3-0t64:amd64 mawk xdg-dbus-proxy" failed: exit status 2

Cheers
--
Sebastian Ramacher
Serafeim (Serafi) Zanikolas
2024-08-24 19:50:01 UTC
Reply
Permalink
[..]
Post by Serafeim Zanikolas
I've uploaded a fix as 0.16.15 in experimental. please confirm whether that
works for you.
thanks for bearing with me. 0.16.16 in experimental it is then :)
Sebastian Ramacher
2024-08-26 19:00:01 UTC
Reply
Permalink
Post by Serafeim (Serafi) Zanikolas
[..]
Post by Serafeim Zanikolas
I've uploaded a fix as 0.16.15 in experimental. please confirm whether that
works for you.
thanks for bearing with me. 0.16.16 in experimental it is then :)
Same with 0.16.16:

2024/08/26 20:48:15 "dpkg -L qemu-utils qemu-system-mips libglib2.0-dev:amd64 libglib2.0-0t64:amd64 libgirepository-2.0-0:amd64 libreoffice-math libc-dev-bin libuno-salhelpergcc3-3t64 libreoffice-draw python3-uno libglib2.0-dev-bin binutils-common:amd64 libc6-i386 libreoffice-uiconfig-draw libreoffice-base-drivers python3-paramiko ure libreoffice-uiconfig-base libreoffice-base-core fonts-opensymbol libgprofng0 libc6-dbg:amd64 libglib2.0-0t64:i386 locales-all libsframe1 libreoffice-l10n-de libc6:i386 libbinutils:amd64 libuno-purpenvhelpergcc3-3t64 libreoffice-uiconfig-impress mypy qemu-system-sparc uno-libs-private libctf-nobfd0 libc6:amd64 gir1.2-glib-2.0-dev:amd64 libreoffice-uiconfig-writer libuno-sal3t64 libuno-cppuhelpergcc3-3t64 libgirepository-2.0-0 libglib2.0-0t64 libglib2.0-doc qemu-system-arm libc6-dev libreoffice-writer libreoffice-impress libreoffice-gnome libreoffice-calc libglib2.0-bin binutils-x86-64-linux-gnu libbinutils locales qemu-system libgprofng0:amd64 libsoup-3.0-0:amd64 python3-mypy gir1.2-glib-2.0-dev libglib2.0-dev libglib2.0-data libctf-nobfd0:amd64 libreoffice-gtk3 libreoffice-uiconfig-math libreoffice-core qemu-system-misc libuno-cppu3t64 libreoffice-common libreoffice-uiconfig-calc qemu-system-x86 qemu-system-ppc libreoffice-uiconfig-common gir1.2-glib-2.0 libctf0:amd64 libc-l10n libreoffice mawk binutils binutils-common libsoup-3.0-0 libc-bin libreoffice-report-builder-bin libreoffice-style-colibre libsoup-3.0-common qemu-system-common libsframe1:amd64 libc6-dbg libreoffice-base libctf0 qemu-system-data gir1.2-glib-2.0:amd64 libc6-dev:amd64 libc6" failed: exit status 2

Cheers
--
Sebastian Ramacher
Serafeim (Serafi) Zanikolas
2024-08-26 22:00:01 UTC
Reply
Permalink
[..]

okay, this is starting to get embarassing. I'm confident that 0.16.17 fixes it,
but so was with earlier attempts. if that fails again, I'll setup a multi-arch
system to actually reproduce the issue (I can't on my mix of stable/testing, at
least not with the foreign arch I've tried).

thanks again,
serafi
Sebastian Ramacher
2024-08-27 11:30:01 UTC
Reply
Permalink
Post by Serafeim (Serafi) Zanikolas
[..]
okay, this is starting to get embarassing. I'm confident that 0.16.17 fixes it,
but so was with earlier attempts. if that fails again, I'll setup a multi-arch
system to actually reproduce the issue (I can't on my mix of stable/testing, at
least not with the foreign arch I've tried).
The last upgrade with MA: same libraries running adequate 0.16.17 didn't
produce a dpkg error. So it looks fixed to me.

Cheers
--
Sebastian Ramacher
Serafeim (Serafi) Zanikolas
2024-08-31 19:40:02 UTC
Reply
Permalink
Post by Sebastian Ramacher
The last upgrade with MA: same libraries running adequate 0.16.17 didn't
produce a dpkg error. So it looks fixed to me.
Sebastian, thanks for the confirmation!

Loading...