[Bug 1821640] Re: Missing pattern for linux-image-unsigned keeps autoremovable kernels on the system

Julian Andres Klode julian.klode at canonical.com
Thu May 16 10:27:34 UTC 2019


vorlon: Even if it's not technically needed on the apt side, because
there is no meta package, it does help to have the list consistent. For
eoan, we'll even move to just ^linux-.*$ (to avoid having to add new
kernels when they appear), so it will be covered anyway.

On the other hand, it does have the advantage that if you do install
unsigned kernels for some reason, they'll get automatically removed by
unattended-upgrades with the pattern being present if they are outdated
as part of the normal versioned kernel removal.

** Changed in: apt (Ubuntu Cosmic)
       Status: Incomplete => In Progress

-- 
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/1821640

Title:
  Missing pattern for linux-image-unsigned keeps autoremovable kernels
  on the system

Status in apt package in Ubuntu:
  Fix Released
Status in apt source package in Xenial:
  In Progress
Status in apt source package in Bionic:
  In Progress
Status in apt source package in Cosmic:
  In Progress
Status in apt source package in Disco:
  Fix Committed
Status in apt source package in Eoan:
  Fix Released

Bug description:
  [Impact]
  Unattended-upgrades keeps versioned kernel packages because they don't match known kernel package patterns:

  ...
  Keeping auto-removable linux-modules-4.18.0-14-generic package(s) because it would also remove the following packages which should be kept in this step: linux-image-unsigned-4.18.0-14-generic
  ...

  For reproduction see LP: #1795696, but running u-u with --verbose.

  And APT does not apply proper kernel-version based protection to it.

  [Test case]
  linux-image-unsigned should popup in the same list in 01autoremove-kernels as linux-signed-image, and should be autoremovable iff it's signed counterpart is autoremovable.

  [Regression potential]
  Not really any, it's just an additional string in the entry. The only difference really possible therefore is that the set of autoremovable packages changes and unattended-upgrades and friends might autoremove different sets of them.

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



More information about the foundations-bugs mailing list