So, how can I convince APT to _automatically_ remove all kernel
leftovers? I could of course run a cron job with the workaround, but
maybe this can be done The Right Way? :)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1863165

Title:
  autoremove-kernels doesn't purge kernels

Status in apt package in Ubuntu:
  Invalid

Bug description:
  Maybe this is a configuration issue, but:

  # apt-get --purge autoremove
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

  # dpkg -l | grep ^rc | cut -c-70
  rc linux-image-4.15.0-66-generic 4.15.0-66.75 amd64 Signed kernel imag
  rc linux-image-4.15.0-67-generic 4.15.0-67.76 amd64 Signed kernel imag
  rc linux-image-4.15.0-71-generic 4.15.0-71.80 amd64 Signed kernel imag
  rc linux-image-4.15.0-72-generic 4.15.0-72.81 amd64 Signed kernel imag
  rc linux-image-4.15.0-73-generic 4.15.0-73.82 amd64 Signed kernel imag
  rc linux-image-4.15.0-74-generic 4.15.0-74.84 amd64 Signed kernel imag
  rc linux-image-4.15.0-75-generic 4.15.0-75.85 amd64 Signed kernel imag
  rc linux-image-4.15.0-76-generic 4.15.0-76.86 amd64 Signed kernel imag
  rc linux-modules-4.15.0-66-generic 4.15.0-66.75 amd64 Linux kernel ext
  rc linux-modules-4.15.0-67-generic 4.15.0-67.76 amd64 Linux kernel ext
  rc linux-modules-4.15.0-71-generic 4.15.0-71.80 amd64 Linux kernel ext
  rc linux-modules-4.15.0-72-generic 4.15.0-72.81 amd64 Linux kernel ext
  rc linux-modules-4.15.0-73-generic 4.15.0-73.82 amd64 Linux kernel ext
  rc linux-modules-4.15.0-74-generic 4.15.0-74.84 amd64 Linux kernel ext
  rc linux-modules-4.15.0-75-generic 4.15.0-75.85 amd64 Linux kernel ext
  rc linux-modules-4.15.0-76-generic 4.15.0-76.86 amd64 Linux kernel ext

  And the "rc" translates to "Remove/Conf-files". For some reason
  /etc/apt/apt.conf.d/01autoremove-kernels (triggered by unattended-
  upgrades.service) doesn't seem to remove the kernel's configuration
  files.

  The kernel images and modules are removed, only the package list (and
  maybe /usr/share/doc/linux*) is cluttered with the remnants of old
  kernels.

  Workaround:

   dpkg -l | awk '/^rc.*linux-(image|modules)/ {print $2}' | xargs dpkg
  -P

  # lsb_release -r; dpkg -s apt | grep Ver; uname -r
  Release:        18.04
  Version: 1.6.12
  5.3.0-23-generic

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to