[Aptitude-devel] Bug#999766: aptitude: in the TUI, with "+m" on a piA package, aptitude doesn't remember the manually installed state

Vincent Lefevre vincent at vinc17.net
Tue Nov 16 11:29:41 GMT 2021


Package: aptitude
Version: 0.8.13-3
Severity: normal

With ksh 2020.0.0+really93u+20120801-10 installed and ksh93u+m not yet
installed, I have the following issue (always reproducible):

# aptitude

1. I type 'U' to upgrade. I get

aptitude 0.8.13 @ cventin   #Broken: 1   Disk: -151 MB         DL: 123 MB/123 MB

[1(1)/...] Actions: 7 keeps
e: Examine  !: Apply  .: Next  ,: Previous

2. I type 'g' to perform the pending operations, keeping these
unrelated packages. This gives:

--\ Packages to be upgraded (1)
iu  ksh              -3312 kB  2020.0.0+really93u+20120 20210511
--\ Packages being automatically installed to satisfy dependencies (1)
piA ksh93u+m         +3284 kB  <none>                   1.0.0~beta.1-1

3. Over ksh93u+m, I type '+m' (the '+' does nothing but it is actually
important to reproduce the bug), where 'm' now declares ksh93u+m as to
be manually installed.

4. Over ksh, I type '_' to purge this package (now a transitional
package to ksh93u+m). This gives:

--\ Packages to be upgraded (1)
ip  ksh              -3359 kB  2020.0.0+really93u+20120 20210511
--\ Packages being automatically installed to satisfy dependencies (1)
pi  ksh93u+m         +3284 kB  <none>                   1.0.0~beta.1-1

5. I type 'g' to perform the pending operations. This succeeds,
and I get:

Press Return to continue, 'q' followed by Return to quit.

6. I press Return to continue. But I get:

aptitude 0.8.13 @ cventin                Disk: -3284 kB

7. I type 'g', which gives:

--\ Packages being removed because they are no longer used (1)
idA ksh93u+m         -3284 kB  1.0.0~beta.1-1           1.0.0~beta.1-1

while this package should have been considered manually installed
due to step 3.

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

aptitude version information:
aptitude 0.8.13
Compiler: g++ 10.2.1 20210110
Compiled against:
  apt version 6.0.0
  NCurses version 6.2
  libsigc++ version: 2.10.4
  Gtk+ support disabled.
  Qt support disabled.

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

aptitude linkage:
	linux-vdso.so.1 (0x00007ffed30f9000)
	libapt-pkg.so.6.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.6.0 (0x00007fbe6a81f000)
	libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007fbe6a7e4000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007fbe6a7b3000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fbe6a7aa000)
	libcwidget.so.4 => /usr/lib/x86_64-linux-gnu/libcwidget.so.4 (0x00007fbe6a6a4000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fbe6a559000)
	libboost_iostreams.so.1.74.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 (0x00007fbe6a53e000)
	libxapian.so.30 => /usr/lib/x86_64-linux-gnu/libxapian.so.30 (0x00007fbe6a31b000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbe6a2fa000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbe6a0ee000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbe69fa9000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbe69f8f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbe69dc8000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fbe69dae000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbe69d91000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fbe69d7e000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fbe69d56000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fbe69d33000)
	libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fbe69c56000)
	libudev.so.1 => /usr/lib/x86_64-linux-gnu/libudev.so.1 (0x00007fbe69c1f000)
	libsystemd.so.0 => /usr/lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fbe69b40000)
	libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fbe69a04000)
	libxxhash.so.0 => /usr/lib/x86_64-linux-gnu/libxxhash.so.0 (0x00007fbe699eb000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fbe6ae54000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbe699e5000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fbe699d8000)
	libuuid.so.1 => /usr/lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fbe699cf000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007fbe699c4000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fbe6999d000)

-- 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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-4-amd64 (SMP w/12 CPU threads)
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-3
ii  libapt-pkg6.0             2.3.11
ii  libboost-iostreams1.74.0  1.74.0-12
ii  libc6                     2.32-4
ii  libcwidget4               0.5.18-5
ii  libgcc-s1                 11.2.0-10
ii  libncursesw6              6.3-1
ii  libsigc++-2.0-0v5         2.10.4-2
ii  libsqlite3-0              3.36.0-2
ii  libstdc++6                11.2.0-10
ii  libtinfo6                 6.3-1
ii  libxapian30               1.4.18-4

Versions of packages aptitude recommends:
ii  libdpkg-perl    1.20.9
ii  sensible-utils  0.0.17

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

-- 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