LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2017, 09:21 AM   #1
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Rep: Reputation: 35
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 3.16.0.38 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 3.19.0.32
Now strangely when I check update manager it shows kernel 3.19.0.32 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.
 
Old 11-03-2017, 10:45 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,594

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, System.map & initrd finishing in the obsolete kernel version number.
In /usr/src, The obsolete kernel source
In /lib/modules, the obsolete module direcory.
 
Old 11-03-2017, 11:02 AM   #3
DVOM
Member
 
Registered: Nov 2010
Posts: 223

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

Code:
sudo apt-get purge linux-image-4.11.0*
Code:
sudo apt-get purge linux-headers-4.11.0*
 
Old 11-03-2017, 11:27 AM   #4
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
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
 
Old 11-03-2017, 12:17 PM   #5
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
Update.
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing old kernels xjx424 Linux - Newbie 8 01-03-2012 10:38 AM
Removing old kernels? carlosinfl Fedora 1 04-12-2005 09:58 AM
Re: Removing old kernels jong357 Linux - General 1 02-29-2004 07:54 AM
Removing old kernels dbzw Linux - General 1 02-28-2004 11:33 PM
removing kernels? rakriege Linux - Newbie 1 11-09-2003 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration