[Aptitude-devel] Bug#1062892: aptitude: search does not handle virtual packages if apt-xapian-index is installed

of1 of1+debreportbug at disroot.org
Sat Feb 3 21:41:00 GMT 2024


Package: aptitude
Version: 0.8.13-5+b1
Severity: normal

Dear Maintainer,

If apt-xapian-index is installed, aptitude cannot handle searches performed
on virtual packages. For example:


$ apt policy apt-xapian-index
apt-xapian-index:
  Installed: 0.54
  Candidate: 0.54
  Version table:
 *** 0.54 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
$ aptitude -F "%c %p" search "?exact-name(lha)"; echo $?
1
$ aptitude -F "%c %p" search "?provides(?exact-name(lha))"; echo $?
1


Deinstalling apt-xapian-index solves the problem:


$ apt policy apt-xapian-index
apt-xapian-index:
  Installed: (none)
  Candidate: 0.54
  Version table:
     0.54 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
$ aptitude -F "%c %p" search "?exact-name(lha)"; echo $?
v lha                                                                                                                                                                                                         
0
$ aptitude -F "%c %p" search "?provides(?exact-name(lha))"; echo $?
p jlha-utils                                                                                                                                                                                                  
p lhasa                                                                                                                                                                                                       
0


Best Regards


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

aptitude version information:
aptitude 0.8.13
Compiler: g++ 13.2.0
Compiled against:
  apt version 6.0.0
  NCurses version 6.4
  libsigc++ version: 2.12.1
  Gtk+ support disabled.
  Qt support disabled.

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

aptitude linkage:
	linux-vdso.so.1 (0x00007ffdc3701000)
	libapt-pkg.so.6.0 => /lib/x86_64-linux-gnu/libapt-pkg.so.6.0 (0x00007f7808e00000)
	libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f7809735000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f7809700000)
	libsigc-2.0.so.0 => /lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f78096f7000)
	libcwidget.so.4 => /lib/x86_64-linux-gnu/libcwidget.so.4 (0x00007f78090fe000)
	libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f7808c8a000)
	libboost_iostreams.so.1.83.0 => /lib/x86_64-linux-gnu/libboost_iostreams.so.1.83.0 (0x00007f78096db000)
	libxapian.so.30 => /lib/x86_64-linux-gnu/libxapian.so.30 (0x00007f7808a00000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7808600000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7808921000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f78096ae000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f780841e000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f780968d000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f780967a000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f780964a000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f78090d8000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f780835d000)
	libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f78090a5000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f780827b000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f7808133000)
	libxxhash.so.0 => /lib/x86_64-linux-gnu/libxxhash.so.0 (0x00007f7809092000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f7809775000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f7809088000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f780907c000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f7809053000)

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.13-amd64 (SMP w/4 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.7.10
ii  libboost-iostreams1.83.0  1.83.0-2+b2
ii  libc6                     2.37-15
ii  libcwidget4               0.5.18-6+b1
ii  libgcc-s1                 14-20240201-3
ii  libncursesw6              6.4+20240113-1
ii  libsigc++-2.0-0v5         2.12.1-1
ii  libsqlite3-0              3.45.1-1
ii  libstdc++6                14-20240201-3
ii  libtinfo6                 6.4+20240113-1
ii  libxapian30               1.4.22-1

Versions of packages aptitude recommends:
ii  libdpkg-perl    1.22.4
ii  sensible-utils  0.0.20

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

-- no debconf information



More information about the Aptitude-devel mailing list