[Aptitude-devel] Bug#1062811: aptitude: search "?tag(tag)" fails to find packages in security when debtags is installed

of1 of1+debreportbug at disroot.org
Sat Feb 3 13:47:12 GMT 2024


Package: aptitude
Version: 0.8.13-5
Severity: normal

Dear Maintainer,

There seems to be a bad interaction between 'aptitude' and 'debtags'.
When searching using the ?tag search term, aptitude cannot find packages whose
candidate version is in the security repository.
For example:

$ apt policy libc6 debtags
libc6:
  Installed: 2.36-9+deb12u4
  Candidate: 2.36-9+deb12u4
  Version table:
 *** 2.36-9+deb12u4 500
        500 https://deb.debian.org/debian-security bookworm-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.36-9+deb12u3 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
debtags:
  Installed: 2.1.5
  Candidate: 2.1.5
  Version table:
 *** 2.1.5 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
$ aptitude search "?name(^libc6$)?tag(^role::shared-lib$)"; echo $?
1


Deinstalling 'debtags' solves the problem:


$ apt policy libc6 debtags
libc6:
  Installed: 2.36-9+deb12u4
  Candidate: 2.36-9+deb12u4
  Version table:
 *** 2.36-9+deb12u4 500
        500 https://deb.debian.org/debian-security bookworm-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.36-9+deb12u3 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
debtags:
  Installed: (none)
  Candidate: 2.1.5
  Version table:
     2.1.5 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
$ aptitude -F "%p" search "?name(^libc6$)?tag(^role::shared-lib$)"; echo $?
libc6                                                                                                                                                                                                         
0


Best Regards


-- Package-specific info:
Terminal: xterm-256color
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.8.13
Compiler: g++ 12.1.0
Compiled against:
  apt version 6.0.0
  NCurses version 6.3
  libsigc++ version: 2.10.8
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 6.4.20221231
  cwidget version: 0.5.18
  Apt version: 6.0.0

aptitude linkage:
	linux-vdso.so.1 (0x00007ffe117d0000)
	libapt-pkg.so.6.0 => /lib/x86_64-linux-gnu/libapt-pkg.so.6.0 (0x00007f2720605000)
	libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f27205cb000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f2720598000)
	libsigc-2.0.so.0 => /lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f2720c29000)
	libcwidget.so.4 => /lib/x86_64-linux-gnu/libcwidget.so.4 (0x00007f27204a6000)
	libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2720347000)
	libboost_iostreams.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 (0x00007f272032f000)
	libxapian.so.30 => /lib/x86_64-linux-gnu/libxapian.so.30 (0x00007f2720000000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2720c22000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f271fc00000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2720250000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f271ffe0000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f271fa1f000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2720231000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f271ffcd000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f271ff9e000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f271ff78000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f271febc000)
	libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f271fe8e000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f271f94f000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f271f808000)
	libxxhash.so.0 => /lib/x86_64-linux-gnu/libxxhash.so.0 (0x00007f271fe79000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f2720c48000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f271fe6f000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f271fe63000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f271fe3b000)

-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-17-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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 aptitude depends on:
ii  aptitude-common           0.8.13-5
ii  libapt-pkg6.0             2.6.1
ii  libboost-iostreams1.74.0  1.74.0+ds1-21
ii  libc6                     2.36-9+deb12u4
ii  libcwidget4               0.5.18-6
ii  libgcc-s1                 12.2.0-14
ii  libncursesw6              6.4-4
ii  libsigc++-2.0-0v5         2.12.0-1
ii  libsqlite3-0              3.40.1-2
ii  libstdc++6                12.2.0-14
ii  libtinfo6                 6.4-4
ii  libxapian30               1.4.22-1

Versions of packages aptitude recommends:
ii  libdpkg-perl    1.21.22
ii  sensible-utils  0.0.17+nmu1

Versions of packages aptitude suggests:
pn  apt-xapian-index                <none>
pn  aptitude-doc-en | aptitude-doc  <none>
ii  debtags                         2.1.5
ii  tasksel                         3.73

-- no debconf information



More information about the Aptitude-devel mailing list