← Back to team overview

kernel-packages team mailing list archive

[Bug 1440608] Re: /etc/kernel/postinst.d/apt-auto-removal wants to remove all kernels except the latest one


Oh, now I remember why I added "xargs apt-mark showauto" in the pipe in
the first script attached to comment #22: if you manually add some newer
kernels for e.g. testing something, you may not want system to
automatically remove the latest kernels available from the usual Ubuntu
repository, and consequently loose a meta package such as linux-image-
generic that enables kernel updates. In case user has installed an LTS
Enablement Stack, automatic removal should keep the meta kernel package
for that.

** Attachment added: "/etc/kernel/postinst.d/apt-auto-removal (version 4 from Jarno Suni)"

** Attachment removed: "/etc/kernel/postinst.d/apt-auto-removal (version 3 from Jarno Suni)"

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  /etc/kernel/postinst.d/apt-auto-removal wants to remove all kernels
  except the latest one

Status in One Hundred Papercuts:
Status in apt package in Ubuntu:
Status in linux package in Ubuntu:

Bug description:
  After installing a 3rd kernel currently 3.19.0-12-generic, the
  /etc/apt/apt.conf.d/01autoremove-kernels file looks normal listing the
  3.19.0-11-generic and 3.19.0-12-generic with 3.19.0-10-generic listed
  to be autoremoved. But once autoremove is completed the machine
  requests to be rebooted and at that time the /etc/apt/apt.conf.d
  /01autoremove-kernels file lists the 3.19.0-12-generic and
  3.19.0-10-generic kernels. So upon rebooting the 3.19.0-11-generic is
  requested to be autoremoved leaving only one kernel the latest one

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: apt
  ProcVersionSignature: Ubuntu 3.19.0-12.12-generic 3.19.3
  Uname: Linux 3.19.0-12-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.17-0ubuntu1
  Architecture: amd64
  CurrentDesktop: MATE
  Date: Sun Apr  5 17:03:01 2015
  InstallationDate: Installed on 2015-04-02 (3 days ago)
  InstallationMedia: Ubuntu-MATE 15.04 "Vivid Vervet" - Beta amd64 (20150401)
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to: