[Aptitude-devel] Bug#902652: aptitude doesn't autoremove kernels

積丹尼 Dan Jacobson jidanni at jidanni.org
Sat May 1 22:28:53 BST 2021


found 902652 0.8.13-3
severity 902652 important
thanks

Proof that aptitude is not ready for

   /usr/share/doc/apt/NEWS.Debian.gz
   apt (2.1.16) unstable; urgency=medium

     Automatically remove unused kernels on apt {dist,full}-upgrade. To revert
     to previous behavior, set APT::Get::AutomaticRemove::Kernels to false or
     pass --no-auto-remove to the command. apt-get remains unchanged.

# mv /etc/apt/apt.conf.d/10jidanni ~ #See, not anything caused by me
# for i in apt apt-get aptitude; do set $i -s full-upgrade; echo =========== $@:; $@; done
=========== apt -s full-upgrade:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  linux-image-5.10.0-1-amd64 linux-image-5.10.0-2-amd64 linux-image-5.10.0-3-amd64 linux-image-5.10.0-4-amd64 linux-image-5.9.0-5-amd64
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Remv linux-image-5.10.0-1-amd64 [5.10.5-1]
Remv linux-image-5.10.0-2-amd64 [5.10.9-1]
Remv linux-image-5.10.0-3-amd64 [5.10.13-1]
Remv linux-image-5.10.0-4-amd64 [5.10.19-1]
Remv linux-image-5.9.0-5-amd64 [5.9.15-1]
=========== apt-get -s full-upgrade:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-image-5.10.0-1-amd64 linux-image-5.10.0-2-amd64 linux-image-5.10.0-3-amd64 linux-image-5.10.0-4-amd64 linux-image-5.9.0-5-amd64
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
=========== aptitude -s full-upgrade:
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Would download/install/remove packages.

See also https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1772688



More information about the Aptitude-devel mailing list