[Aptitude-devel] Bug#1072620: aptitude: discrepancy between TUI and command line when not all packages of the same source can be upgraded
Vincent Lefevre
vincent at vinc17.net
Wed Jun 5 08:55:26 BST 2024
Package: aptitude
Version: 0.8.13-6
Severity: normal
Normally, when one chooses to upgrade some package, all the other
packages of the same source are selected for upgrade (even when
there are no dependencies to force that).
But when the requested package can be upgraded and other packages
of the same source cannot, the behavior is the following:
* with the TUI, this is signaled;
* the command-line aptitude invocation just installs the
requested package, without any warning (possibly yielding
minor inconsistencies, e.g. with the doc).
Note that apt has a 3rd behavior, as seen below.
I think that the command-line aptitude invocation should behave
like the TUI, giving the user the choice to upgrade when proposing
a second resolution.
Currently, for openssl, I have the following installed:
$ apt list --installed \*ssl\* | grep 3.2.1-3
libssl-dev/testing,now 3.2.1-3 amd64 [installed,upgradable to: 3.2.2-1]
libssl-doc/testing,testing,unstable,now 3.2.1-3 all [installed,upgradable to: 3.2.2-1]
libssl3t64/testing,now 3.2.1-3 amd64 [installed,upgradable to: 3.2.2-1]
libssl3t64/testing,unstable,now 3.2.1-3 i386 [installed,automatic]
openssl/testing,now 3.2.1-3 amd64 [installed,upgradable to: 3.2.2-1]
*** What apt does:
$ apt install -s openssl
[...]
Upgrading:
libssl-doc openssl
Summary:
Upgrading: 2, Installing: 0, Removing: 0, Not Upgrading: 60
Inst libssl-doc [3.2.1-3] (3.2.2-1 Debian:unstable [all])
Inst openssl [3.2.1-3] (3.2.2-1 Debian:unstable [amd64])
Conf libssl-doc (3.2.2-1 Debian:unstable [all])
Conf openssl (3.2.2-1 Debian:unstable [amd64])
*** With the command-line aptitude invocation:
$ aptitude install -s openssl
The following packages will be upgraded:
openssl
1 packages upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Need to get 1364 kB of archives. After unpacking 1024 B will be used.
Note: Using 'Simulate' mode.
Do you want to continue? [Y/n/?]
Would download/install/remove packages.
Note that contrary to apt, libssl-doc is not even proposed for
upgrade.
*** With the TUI, if I type '+' over "openssl", I get in the
dependency resolution:
--\ Keep the following packages at their current version:
libssl-dev [3.2.1-3 (now, testing)]
libssl3t64 [3.2.1-3 (now, testing)]
-- Package-specific info:
Terminal: xterm-256color
$DISPLAY is set.
which aptitude: /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.5.20240427
cwidget version: 0.5.18
Apt version: 6.0.0
aptitude linkage:
linux-vdso.so.1 (0x00007ffe05f4d000)
libapt-pkg.so.6.0 => /lib/x86_64-linux-gnu/libapt-pkg.so.6.0 (0x00007f27fc000000)
libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f27fc8a7000)
libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f27fc872000)
libsigc-2.0.so.0 => /lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f27fc869000)
libcwidget.so.4 => /lib/x86_64-linux-gnu/libcwidget.so.4 (0x00007f27fc2fe000)
libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f27fbe88000)
libboost_iostreams.so.1.83.0 => /lib/x86_64-linux-gnu/libboost_iostreams.so.1.83.0 (0x00007f27fc84d000)
libxapian.so.30 => /lib/x86_64-linux-gnu/libxapian.so.30 (0x00007f27fbc00000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f27fb800000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f27fbb1e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f27fc2d1000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f27fb61b000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f27fc2b2000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f27fc29f000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f27fc26f000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f27fbe62000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f27fb55a000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f27fbaeb000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f27fb478000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f27fb330000)
libxxhash.so.0 => /lib/x86_64-linux-gnu/libxxhash.so.0 (0x00007f27fc25c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f27fc905000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f27fc252000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f27fbe56000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f27fbac2000)
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.12-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.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-6
ii libapt-pkg6.0t64 2.9.4
ii libboost-iostreams1.83.0 1.83.0-3
ii libc6 2.38-12
ii libcwidget4 0.5.18-6+b1
ii libgcc-s1 14.1.0-1
ii libncursesw6 6.5-2
ii libsigc++-2.0-0v5 2.12.1-2
ii libsqlite3-0 3.46.0-1
ii libstdc++6 14.1.0-1
ii libtinfo6 6.5-2
ii libxapian30 1.4.25-1
Versions of packages aptitude recommends:
ii libdpkg-perl 1.22.6
ii sensible-utils 0.0.22
Versions of packages aptitude suggests:
pn apt-xapian-index <none>
ii aptitude-doc-en [aptitude-doc] 0.8.13-6
pn debtags <none>
ii tasksel 3.75
-- 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