[Aptitude-devel] Bug#826941: Bug#826941: aptitude: inconsistent decisions for auto-installed package removal / empty list for the reason
Vincent Lefevre
vincent at vinc17.net
Sat Jun 11 10:06:29 UTC 2016
On 2016-06-11 01:04:25 +0200, Axel Beckert wrote:
> Hi,
>
> Vincent Lefevre wrote:
> > After doing an update ("u" in the UI) and tried to upgrade ("U"),
> > which I cancelled,
>
> How have you cancelled it?
Ctrl-u
> > 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.
>
> It does.
>
> > Either it should have proposed to remove them before, or there is a
> > reason to keep them and it should keep them.
>
> Nope, there's another thing which is involved which you didn't seem to
> take into account:
>
> > 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.
>
> Not necessarily.
>
> Because all this is very likely caused by the dynamically generated
> contents of /etc/apt/apt.conf.d/01autoremove-kernels.
I didn't know that. I think that this should be documented in some
way. In particular, when the list is empty, there should be some
indication.
Moreover, when a package matches the APT::NeverAutoRemove list, it
should be mentioned by "aptitude why".
--
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