Public bug reported:

Ubuntu 18.04.3   (LXLE 18.04.3)  i386
"apt -y autoremove --purge"
Expected Behavior:  Remove old kernels, except running kernel and 2nd most 
recent kernel.
Observed Behavior:  Removes all kernels except running kernel. Well, itat least 
warns before removing the running kernel.
Other notes:
apt config file  "/etc/apt/apt.conf.d/01autoremove-kernels" contains no data 
for the section APT::NeverAutoRemove.   There are just the empty braces.
Executable file "/etc/kernel/postinst.d/apt-auto-removal" seems to want a 
configuration file containing a section with APT:VersionedKernelPackages, but 
there is none.
I created a file "/etc/apt/apt.conf.d/200versiondkernelpackages" which seemed 
to solve the problem for me.  It may not be the general solution.

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

** Attachment added: "200versionedkernelpackages"
   
https://bugs.launchpad.net/bugs/1883195/+attachment/5383123/+files/200versionedkernelpackages

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

Title:
  apt autoremove  config file for VersionedKernelPackages

Status in apt package in Ubuntu:
  New

Bug description:
  Ubuntu 18.04.3   (LXLE 18.04.3)  i386
  "apt -y autoremove --purge"
  Expected Behavior:  Remove old kernels, except running kernel and 2nd most 
recent kernel.
  Observed Behavior:  Removes all kernels except running kernel. Well, itat 
least warns before removing the running kernel.
  Other notes:
  apt config file  "/etc/apt/apt.conf.d/01autoremove-kernels" contains no data 
for the section APT::NeverAutoRemove.   There are just the empty braces.
  Executable file "/etc/kernel/postinst.d/apt-auto-removal" seems to want a 
configuration file containing a section with APT:VersionedKernelPackages, but 
there is none.
  I created a file "/etc/apt/apt.conf.d/200versiondkernelpackages" which seemed 
to solve the problem for me.  It may not be the general solution.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1883195/+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