[Bug 1157746] Re: Old kernels are not being listed by autoremove (regression)

Steve J. 1157746 at bugs.launchpad.net
Wed Mar 20 16:05:14 UTC 2013


OK -- that's interesting. All my kernel packages are showing as manually
installed:

% apt-mark showmanual | grep linux-image
linux-image-3.2.0-34-generic
linux-image-3.2.0-35-generic
linux-image-3.2.0-36-generic
linux-image-3.2.0-37-generic
linux-image-3.2.0-38-generic
linux-image-3.2.0-39-generic
linux-image-generic

I didn't install any of these by hand, and updates since *-34 would have
been installed via unattended-upgrades. Please let me know what I can do
to provide relavent information to track this down.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/1157746

Title:
  Old kernels are not being listed by autoremove (regression)

Status in “aptdaemon” package in Ubuntu:
  New

Bug description:
  Hello,

  A patch was released in this bug report, which added a script to mark
  old/unused kernels as autoremoveable:
  https://bugs.launchpad.net/ubuntu/+source/apt/+bug/923876

  I've upgraded apt to version 0.8.16~exp12ubuntu10.10, and I see the
  new addition of the /etc/kernel/postinst.d/apt-auto-removal script,
  and it seems to be called correctly when upgrading, and it generates a
  /etc/apt.conf.d/01-autoremove-kernels file as expected, with the
  following contents:

  // File autogenerated by /etc/kernel/postinst.d/apt-auto-removal, do not edit
  APT
  {
    NeverAutoRemove
    {
      "^linux-image-3.2.0-38-generic$";
      "^linux-image-extra-3.2.0-38-generic$";
      "^linux-signed-image-3.2.0-38-generic$";
      "^linux-backports-modules-.*-3.2.0-38-generic$";
      "^linux-headers-3.2.0-38-generic$";
      "^linux-image-3.2.0-39-generic$";
      "^linux-image-extra-3.2.0-39-generic$";
      "^linux-signed-image-3.2.0-39-generic$";
      "^linux-backports-modules-.*-3.2.0-39-generic$";
      "^linux-headers-3.2.0-39-generic$";
    };
  };

  However, upon running 'apt-get autoremove' as suggested in the bug
  report mentioned above, kernel versions prior to 3.2.0-38 are not
  offered for removal. I see this on several Ubuntu hosts running
  Precise (Ubuntu 12.04.2 LTS). Are we looking at some sort of
  regression?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1157746/+subscriptions




More information about the foundations-bugs mailing list