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

Steve J. 1157746 at bugs.launchpad.net
Wed Mar 20 14:18:32 UTC 2013


Public bug reported:

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?

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: regression-update

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

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

Status in “apt” 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/apt/+bug/1157746/+subscriptions




More information about the foundations-bugs mailing list