[Aptitude-devel] Bug#1030643: aptitude: buggy handling of "Provides:" when trying to remove a package

Vincent Lefevre vincent at vinc17.net
Mon Feb 6 02:56:47 GMT 2023


Package: aptitude
Version: 0.8.13-5
Severity: normal

When I want to remove the libldap2-dev transitional package from the
command line, I get:

cventin:~> aptitude remove -s libldap2-dev
The following packages will be REMOVED:  
  libldap-dev{u} libldap2-dev 
0 packages upgraded, 0 newly installed, 2 to remove and 27 not upgraded.
Need to get 0 B of archives. After unpacking 1655 kB will be freed.
The following packages have unmet dependencies:
 libaprutil1-dev : Depends: libldap2-dev but it is not going to be installed
The following actions will resolve these dependencies:

     Keep the following packages at their current version: 
1)     libldap-dev [2.5.13+dfsg-3 (now, testing, unstable)]

It appears that aptitude wants to remove libldap-dev too soon,
as this will break the dependencies: libaprutil1-dev depends on
libldap2-dev, which is provided by libldap-dev.

The other proposed solutions are not OK as they want to install or
remove other packages.

And from the TUI, if I type '-' on libldap2-dev, I get:

libldap2-dev (remove, 2.5.13+dfsg-3) will be removed.                          ▒
                                                                               ▒
The following packages depend on libldap2-dev (remove, 2.5.13+dfsg-3) and will ▒
be broken by its removal:                                                      ▒
                                                                               ▒
  * libaprutil1-dev (held/unchanged, 1.6.3-1) depends on libldap2-dev (provided▒
    by libldap-dev 2.5.13+dfsg-3)                                              ▒

This is incorrect too, and the message is even buggy, as it correctly
says that libldap2-dev is provided by libldap-dev, but I'm not asking
to remove libldap-dev. So this doesn't make sense.

-- 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 (0x00007ffd371cc000)
	libapt-pkg.so.6.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.6.0 (0x00007f6f7b805000)
	libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f6f7be2a000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f6f7b7d3000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f6f7be21000)
	libcwidget.so.4 => /usr/lib/x86_64-linux-gnu/libcwidget.so.4 (0x00007f6f7b6e1000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f6f7b582000)
	libboost_iostreams.so.1.74.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 (0x00007f6f7b56a000)
	libxapian.so.30 => /usr/lib/x86_64-linux-gnu/libxapian.so.30 (0x00007f6f7b200000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6f7be1a000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6f7ae00000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6f7b48b000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6f7b469000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6f7b01f000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f6f7b44a000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f6f7b437000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f6f7add1000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f6f7adab000)
	libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f6f7acf2000)
	libudev.so.1 => /usr/lib/x86_64-linux-gnu/libudev.so.1 (0x00007f6f7acc5000)
	libsystemd.so.0 => /usr/lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f6f7abf6000)
	libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f6f7aaaf000)
	libxxhash.so.0 => /usr/lib/x86_64-linux-gnu/libxxhash.so.0 (0x00007f6f7aa9a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6f7be88000)
	libuuid.so.1 => /usr/lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f6f7aa90000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f6f7aa84000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f6f7aa5c000)

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-3-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /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.5.5
ii  libboost-iostreams1.74.0  1.74.0+ds1-20
ii  libc6                     2.36-8
ii  libcwidget4               0.5.18-6
ii  libgcc-s1                 12.2.0-14
ii  libncursesw6              6.4-2
ii  libsigc++-2.0-0v5         2.12.0-1
ii  libsqlite3-0              3.40.1-1
ii  libstdc++6                12.2.0-14
ii  libtinfo6                 6.4-2
ii  libxapian30               1.4.22-1

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

Versions of packages aptitude suggests:
pn  apt-xapian-index                <none>
ii  aptitude-doc-en [aptitude-doc]  0.8.13-5
pn  debtags                         <none>
ii  tasksel                         3.71

-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Aptitude-devel mailing list