aptitude supposed to uninstall old kernel

Tom H tomh0665 at gmail.com
Mon Apr 5 15:19:39 UTC 2010

On Mon, Apr 5, 2010 at 9:05 AM, Brian McKee <brian.mckee at gmail.com> wrote:
> On Mon, Apr 5, 2010 at 2:51 AM, Robert Holtzman <holtzm at cox.net> wrote:
>> Just ran apt-get update/upgrade on my Hardy installation. A number of
>> packages were held back so I ran aptitude dist-upgrade and was informed
>> that the 2.6.24-27 kernel would be installed and the 2.6.24-26 would be
>> uninstalled. When the upgrade was done I rebooted and saw 2.6.24-26 was
>> still listed in the boot menu. Just for the hell of it I chose it and lo
>> and behold it booted and ran fine. Looked through synaptic and saw all
>> the header and image packages for both kernels are still installed. Did
>> aptitude lie to me? I was under the impression that aptitude
>> dist-upgrade removed unused/orphan packages.

> Aptitude doesn't remove kernels by default so you have a fallback position.
> See  /etc/apt/apt.conf.d/05aptitude
> aptitude::Keep-Unused-Pattern "^linux-image.*$ |
> ^linux-restricted-modules.*$ | ^linux-ubuntu-modules.*$";

This is something that has been puzzling me but I have not had a
chance to look into it except for checking the above file and some
others in apt.conf.d.

Since starting to use Lucid, aptitude has been uninstalling kernels
automatically and leaving me with just two kernels at every kernel
update. I had meant to look into the logs but I forgot about it and
did a clean install two days ago.

Has anyone else run into this? NoOp?

More information about the ubuntu-users mailing list