[Aptitude-devel] Bug#826941: aptitude: inconsistent decisions for auto-installed package removal / empty list for the reason
Vincent Lefevre
vincent at vinc17.net
Fri Jun 10 09:16:51 UTC 2016
Package: aptitude
Version: 0.8.1-1
Severity: normal
After doing an update ("u" in the UI) and tried to upgrade ("U"),
which I cancelled, aptitude wants to remove two packages:
--\ Packages being removed because they are no longer used (2)
idA linux-headers-4.5.0-1-amd64 -4562 kB 4.5.1-1 <none>
idA linux-headers-4.5.0-1-common -28.4 MB 4.5.1-1 <none>
This does not make sense. Either it should have proposed to remove
them before, or there is a reason to keep them and it should keep
them. I have noticed that this is not the first time that it wants
to remove such linux-headers-* packages.
If I look at the packages more closely:
Header files for Linux 4.5.0-1-amd64
linux-headers-4.5.0-1-amd64 (remove, 4.5.1-1) was installed automatically; it ▒
is being removed because all of the packages which depend upon it are being ▒
removed: ▒
The list is empty! This confirms that there is something wrong.
For the second one:
Common header files for Linux 4.5.0-1
linux-headers-4.5.0-1-common (remove, 4.5.1-1) was installed automatically; it ▒
is being removed because all of the packages which depend upon it are being ▒
removed: ▒
▒
* linux-headers-4.5.0-1-amd64 (remove, 4.5.1-1) depends on ▒
linux-headers-4.5.0-1-common (= 4.5.1-1) ▒
i.e. this package is removed, because this other one (for which I get
an empty list for the reason) is removed, which is logical here.
FYI, here's the latest upgrade:
Aptitude 0.8.1: log report
Thu, Jun 9 2016 08:37:32 +0200
IMPORTANT: this log only lists intended actions; actions which fail
due to dpkg problems may not be completed.
Will install 31 packages, and remove 0 packages.
252 MB of disk space will be used
========================================
[INSTALL, DEPENDENCIES] libdw1:amd64 0.165-3
[INSTALL, DEPENDENCIES] linux-doc-4.6:amd64 4.6.1-1
[INSTALL, DEPENDENCIES] linux-headers-4.6.0-1-amd64:amd64 4.6.1-1
[INSTALL, DEPENDENCIES] linux-headers-4.6.0-1-common:amd64 4.6.1-1
[INSTALL, DEPENDENCIES] linux-image-4.6.0-1-amd64:amd64 4.6.1-1
[INSTALL, DEPENDENCIES] linux-kbuild-4.6:amd64 4.6.1-1
[HOLD] gcc-snapshot:amd64 20160508-1
[UPGRADE] comerr-dev:amd64 2.1-1.43-3 -> 2.1-1.43.1-1
[UPGRADE] cups-bsd:amd64 2.1.3-5 -> 2.1.3-6
[UPGRADE] cups-client:amd64 2.1.3-5 -> 2.1.3-6
[UPGRADE] cups-common:amd64 2.1.3-5 -> 2.1.3-6
[UPGRADE] e2fslibs:amd64 1.43-3 -> 1.43.1-1
[UPGRADE] e2fslibs-dev:amd64 1.43-3 -> 1.43.1-1
[UPGRADE] e2fsprogs:amd64 1.43-3 -> 1.43.1-1
[UPGRADE] fuse2fs:amd64 1.43-3 -> 1.43.1-1
[UPGRADE] libbabeltrace-ctf1:amd64 1.3.2-1 -> 1.4.0-1
[UPGRADE] libbabeltrace1:amd64 1.3.2-1 -> 1.4.0-1
[UPGRADE] libcomerr2:amd64 1.43-3 -> 1.43.1-1
[UPGRADE] libcups2:amd64 2.1.3-5 -> 2.1.3-6
[UPGRADE] libcupsimage2:amd64 2.1.3-5 -> 2.1.3-6
[UPGRADE] libdatetime-timezone-perl:amd64 1:1.99-1+2016d -> 1:2.00-1+2016d
[UPGRADE] libjpeg-dev:amd64 1:1.4.2-2 -> 1:1.5.0-1
[UPGRADE] libjpeg62-turbo:amd64 1:1.4.2-2 -> 1:1.5.0-1
[UPGRADE] libjpeg62-turbo-dev:amd64 1:1.4.2-2 -> 1:1.5.0-1
[UPGRADE] libregexp-common-perl:amd64 2016060201-1 -> 2016060801-1
[UPGRADE] libss2:amd64 1.43-3 -> 1.43.1-1
[UPGRADE] linux-compiler-gcc-5-x86:amd64 4.5.5-1 -> 4.6.1-1
[UPGRADE] linux-doc:amd64 4.5+73 -> 4.6+74
[UPGRADE] linux-headers-amd64:amd64 4.5+73 -> 4.6+74
[UPGRADE] linux-image-amd64:amd64 4.5+73 -> 4.6+74
[UPGRADE] linux-libc-dev:amd64 4.5.5-1 -> 4.6.1-1
[UPGRADE] xterm:amd64 324-2 -> 325-1
========================================
Log complete.
but IIRC, I tried "U" after that (as I expected old linux-headers-*
packages to be removed), which had no effect.
Now, with "aptitude why":
cventin:~> aptitude why linux-headers-4.5.0-1-amd64
Automatically installed, current version 4.5.1-1, priority optional
No dependencies require to install linux-headers-4.5.0-1-amd64
So, it should have been removed, which is what aptitude now proposes.
cventin:~> aptitude why linux-headers-4.5.0-2-amd64
Automatically installed, current version 4.5.5-1, priority optional
No dependencies require to install linux-headers-4.5.0-2-amd64
This one should have been removed too, but aptitude doesn't propose
its removal!
For the current one:
cventin:~> aptitude why linux-headers-4.6.0-1-amd64
i linux-headers-amd64 Depends linux-headers-4.6.0-1-amd64
So, it's normal that it is kept.
Concerning linux-headers-4.5.0-2-amd64, linux-headers-amd64 4.5+73
depends on it, but linux-headers-amd64 had been upgraded yesterday
to 4.6+74 (which depends on linux-headers-4.6.0-1-amd64).
Currently in /var/lib/aptitude/pkgstates:
Package: linux-headers-4.5.0-1-amd64
Architecture: amd64
Unseen: yes
State: 3
Dselect-State: 1
Remove-Reason: 4
Package: linux-headers-4.5.0-2-amd64
Architecture: amd64
Unseen: yes
State: 1
Dselect-State: 1
Remove-Reason: 0
Package: linux-headers-4.6.0-1-amd64
Architecture: amd64
Unseen: yes
State: 1
Dselect-State: 1
Remove-Reason: 0
-- Package-specific info:
Terminal: xterm-debian
$DISPLAY is set.
which aptitude: /usr/bin/aptitude
aptitude version information:
aptitude 0.8.1
Compiler: g++ 5.3.1 20160429
Compiled against:
apt version 5.0.0
NCurses version 6.0
libsigc++ version: 2.8.0
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 6.0.20160319
cwidget version: 0.5.17
Apt version: 5.0.0
aptitude linkage:
linux-vdso.so.1 (0x00007ffc902eb000)
libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007fd210ea9000)
libapt-pkg.so.5.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 (0x00007fd210b31000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fd210900000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fd2106d6000)
libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fd2104cf000)
libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007fd2101d1000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fd20fecd000)
libboost_iostreams.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.58.0 (0x00007fd20fcb3000)
libboost_filesystem.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007fd20fa99000)
libboost_system.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007fd20f895000)
libxapian.so.22 => /usr/lib/x86_64-linux-gnu/libxapian.so.22 (0x00007fd20f491000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd20f273000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd20eef3000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd20ebf5000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd20e9de000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd20e63a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd20e436000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fd20e232000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fd20e01b000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd20de00000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fd20dbef000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fd20d9cc000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fd20d7ba000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd20d5b1000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fd20d3ac000)
/lib64/ld-linux-x86-64.so.2 (0x000056398f822000)
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages aptitude depends on:
ii aptitude-common 0.8.1-1
ii libapt-pkg5.0 1.2.12
ii libboost-filesystem1.58.0 1.58.0+dfsg-5+b1
ii libboost-iostreams1.58.0 1.58.0+dfsg-5+b1
ii libboost-system1.58.0 1.58.0+dfsg-5+b1
ii libc6 2.22-11
ii libcwidget3v5 0.5.17-4+b1
ii libgcc1 1:6.1.1-5
ii libncursesw5 6.0+20160319-1
ii libsigc++-2.0-0v5 2.8.0-1
ii libsqlite3-0 3.13.0-1
ii libstdc++6 6.1.1-5
ii libtinfo5 6.0+20160319-1
ii libxapian22v5 1.2.23-1
Versions of packages aptitude recommends:
ii libparse-debianchangelog-perl 1.2.0-8
ii sensible-utils 0.0.9
Versions of packages aptitude suggests:
pn apt-xapian-index <none>
ii aptitude-doc-en [aptitude-doc] 0.8.1-1
pn debtags <none>
ii tasksel 3.34
-- no debconf information
More information about the Aptitude-devel
mailing list