[xubuntu-users] [15.04 64Bit]-Delete Old Kernels?

Ralf Mardorf ralf.mardorf at rocketmail.com
Sat Jun 20 07:43:09 UTC 2015


On Sat, 20 Jun 2015 08:20:40 +0200, Petter Adsen wrote:
>"sudo apt-get clean" will clear out the package cache, and should also
>free up some space, as long as /var/cache is on the root disk.

The OP likely suffers from a *buntu default install with a
separated /boot partition that is too small. That's a wide spread issue.

After removing the unwanted kernels, most likely it's just one of two
kernels, the OP perhaps needs to care about dkms. It's possible
to remove modules build by dkms in /lib/modules after removing the
kernel/s, but then there still would be trash in the dkms tree, so it's
better to run dkms's remove option.

I agree that it's unlikely that the OP has got "linux-image-generic"
installed and autoremove could work, since then upgrades should only
keep two kernels. However, it could be possible, because *buntu's
usually keep two kernels and may be an upgrade is (let's call it)
"atomic", IOW it perhaps first tries to install the new, third kernel,
before removing one kernel.

Maybe the OP should post the output of

  df -h ; ls -hAl /boot

and assumed there should be a boot partition that is too small to keep
a few modern kernels, to consider to resize the /boot partition and to
reinstall grub (grub, not the grub package) after doing this. However,
the fine manuals are a user's friend.




More information about the xubuntu-users mailing list