I installed synaptic package manager to manage my packages and, I see many kernels, that are not being used, can I delete them? There are 2 - 3 using kernels and many non using.
2 Answers
Purge old kernels: http://blog.dustinkirkland.com/2016/06/purge-old-kernels.html
If you're using Xenial, it's included in the Byobu package, so you can run it straightaway if you have that installed:
sudo purge-old-kernels
If you're using an earlier version of Ubuntu, then you can download the script from here: https://bazaar.launchpad.net/~kirkland/byobu/trunk/download/head:/purgeoldkernels-20160229030309-vgiaonyu553ugyrz-1/purge-old-kernels
Just make it executable and run it:
chmod +x purge-old-kernels
sudo ./purge-old-kernels
- 3,180
Don't delete packages at random!! You will end up breaking system functionality. To delete unnecessary packages, open a Terminal window and type:
sudo apt-get update
sudo apt-get autoremove
This will delete very old kernels too. Ubuntu (and other linuxes) are keeping 2 or more kernel versions installed at all times as backup. If one kernel fails for any number of reasons, the next one will automatically boot instead. This ensures a 100% fail-proof operation. Not like stupid Windows with just one kernel and multiple blue screens.