-   Linux - Newbie (
-   -   Removing old kernels (

gillsman 11-03-2017 10:21 AM

Removing old kernels
I installed Ubuntu cleaner (Computer Janitor as it used to be called)
on my Mint 18.2 system in order to clean old kernels.

When I checked "Kernel" under the system heading there are four entries marked as when I tick these and proceed to clean a message appears saying additional requirements and it shows "Install and "Upgrade" clicking each of these shows the additions to be for
Now strangely when I check update manager it shows kernel is already installed and it also shows the kernel currently in use is 4.4.0 something (Can't remember the exact number)

I have played it safe for now and cancelled the operation as all is running well but it would be good if someone knows anything about this, is it safe to proceed or should I leave well alone?

thanks as always for any response.

business_kid 11-03-2017 11:45 AM

It sounds like your package database is screwed, and I would first go at it with rarely used options like --clean --purge --give-yourself-an-enema, or whatever they are. Slackware's package manager (that I use) is a bit like Fred Flintstone's car: put your feet through the floor and run :-/. Bit it works well, and I don't have those issues.

You can usually query it to see what's installed, and delete your unnecessary crud. Try that. If all else fails, only then go with rm -rf for your obsolete stuff.
In /boot, it's the config, & initrd finishing in the obsolete kernel version number.
In /usr/src, The obsolete kernel source
In /lib/modules, the obsolete module direcory.

DVOM 11-03-2017 12:02 PM

This is what I use to remove ubuntu/debian kernels, just adjust the numbers for your old kernel:


sudo apt-get purge linux-image-4.11.0*

sudo apt-get purge linux-headers-4.11.0*

gillsman 11-03-2017 12:27 PM

Thank you, everything is working fine so I'm thinking it may be unwise to fiddle with it as I'm not at all sure what I'm doing

gillsman 11-03-2017 01:17 PM

I decided to back up everything & proceed with the clean up routine on the basis that if it screwed up I would reinstall the system from scratch however the clean up was fully successful & after a reboot I checked the current kernel & it is still the 4.4.0 one so all good.
Thanks to business_kid & DVOM for you assistance.

All times are GMT -5. The time now is 01:21 PM.