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

2021-05-02 Thread Julian Andres Klode
On Sun, May 02, 2021 at 01:42:29PM +0200, Axel Beckert wrote:
> Control: notfound 902652 0.8.13-3
> Contyrol: severity 902652 norma;
> 
> Dear Jidanni,
> 
> > 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.
> 
> Proof that this is wrong:
> 
> That feature wasn't present in apt 1.4.8 which was present when the
> original bug was reported. Hence reverting your changes to this bug
> report.
> 
> Feel free to report a separate bug report for compatibility with the
> 2.1.16 apt changes.
> 
> And wrt. to
> https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1772688:
> Please note that apt-get hasn't changed either and behaves differently
> that apt. And nobody stated that aptitude will follow apt and not
> apt-get. (Nobody has stated the opposite either, though, but it's
> obviously the default.)

There is a bug in aptitude, so to speak, as it protects all linux
images, it literally protects like ~n^linux-image or something like
that by supplying its own root set function somewhere, when it should
just rely on APT's default root set function.

That said, that's a post-freeze topic I reckon.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer  i speak de, en



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

2021-05-02 Thread Axel Beckert
Control: notfound 902652 0.8.13-3
Contyrol: severity 902652 norma;

Dear Jidanni,

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

Proof that this is wrong:

That feature wasn't present in apt 1.4.8 which was present when the
original bug was reported. Hence reverting your changes to this bug
report.

Feel free to report a separate bug report for compatibility with the
2.1.16 apt changes.

And wrt. to
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1772688:
Please note that apt-get hasn't changed either and behaves differently
that apt. And nobody stated that aptitude will follow apt and not
apt-get. (Nobody has stated the opposite either, though, but it's
obviously the default.)

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#902652: aptitude doesn't autoremove kernels

2021-05-01 Thread 積丹尼 Dan Jacobson
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