*** This bug is a duplicate of bug 1357093 ***
    https://bugs.launchpad.net/bugs/1357093

Apparently, according to this page:
https://help.ubuntu.com/community/RemoveOldKernels -- you're ultimately
responsible for keeping /boot clean because there's no "automatic"
mechanism by which old kernels are purged. I've found in my Lubuntu
16.04 installation that the easiest way of doing this is simply "sudo
apt autoremove" but in other distros like LM, I would simulate a run
first by doing a "sudo apt-get -s autoremove" to ensure nothing odd will
get removed (such as VLC if xplayer is removed as VLC will act as an
orphan dependency in that situation.) Many "unneeded dependency"
packages can get marked as "auto removable" -- not just old kernels.

Btw, that Ubuntu article mentions autoremove not "purging" the old
kernels...in my own testing on Lubuntu 16.04, the old kernels were
indeed marked as "auto removable"...I simply did "sudo apt autoremove"
and that freed up /boot to 25% used (a "freshly-normal" size with LVM),
so I'm assuming that was an error (or someone else can correct me here.)
The "unattended-upgrades" package was NOT installed by default...that's
apparently another error in the article, as it says, "The unattended-
upgrades package, included with the default install of all Ubuntu
flavors..."

If you're on LM, then do the byobu -> "purge old kernels" method
described here:
https://forums.linuxmint.com/viewtopic.php?p=1242953#p1242953 -- for
whatever reason, the devs there don't mark old kernels as "auto
removable" so you need to jump these extra hoops on Mint.

Personally, I think a clear warning message should appear in the
Ubiquity installer when choosing to select LVM encryption about how
/boot needs to be *manually* cleaned after 3-4 kernel installs. That
shouldn't be too hard to do right? It seems like there's a new kernel
every 2 weeks these days -- which only compounds the problem.

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

Title:
  Not enough disk space for kernel security update on /boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1183692/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to