LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-04-2011, 03:24 PM   #1
jay_pablo_69
Member
 
Registered: Dec 2009
Posts: 60
Blog Entries: 3

Rep: Reputation: 1
Cannot remove old kernel in ubuntu 10.10


help!!!!

i have 3 kernels on my ubuntu 10.10 (2.6.35-22; 2.6.35-23; 2.6.35-24). i tried to remove the oldest kernel 2.6.35-22 through synaptic manager, but it says that the kernel is not installed on the system. in fact, all the kernels i have on my system were shown as not installed. when i right-click it highlights only 'mark for installation'. so i tried to remove it from the terminal using the command:

sudo apt-get remove linux-headers-2.6.20-15 linux-headers-2.6.20-15-generic linux-image-2.6.20-15-generic --purge

it processes and show that it has been deleted. then i typed:

sudo update-grub2

it showed the grub2 without the deleted kernel. then i restarted, but it was still there. then i logged into the latest kernel (2.6.35-24) and typed:

sudo update-grub

it showed everything including the deleted kernel. then i typed:

sudo update-grub2

and it now showed everything, including the deleted kernel. i thought it was a problem with grub showing deleted entries, so i tried to boot the deleted kernel (2.6.35-22) and surprisingly it booted very well, no hicks or slows. i rebooted into the latest kernel and then tried to re-run the kernel delete command via the terminal, but it said that the old kernel (2.6.35-22) is not installed.

i don't know what's wrong. how do i delete the 2.6.35-22 kernel and update my grub/grub 2?

pls help me!!!

thanks.

***besides, my grub is stil GRUB 1.xx version. but pls how come i still have / can run grub and grub2 on my system? and is also can update both grubs? thanks
 
Old 01-04-2011, 05:02 PM   #2
thelastquincy
LQ Newbie
 
Registered: Apr 2009
Location: Chico, CA
Distribution: Ubuntu 10.10
Posts: 9

Rep: Reputation: 1
Did you update from a previous Ubuntu or did you do a clean install of 10.10? If you upgraded from a previous Ubuntu you would be updated to the new grub. Here is some info on the grub vs grub2 in Ubuntu systems. "https://help.ubuntu.com/community/Grub2" Also if its working why break it? I really don't see what you are trying to do.

-Quincy

Last edited by thelastquincy; 01-04-2011 at 05:03 PM. Reason: add link
 
Old 01-04-2011, 05:17 PM   #3
critta
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Your message was very specific about versions, so I would have to question your command:

sudo apt-get remove linux-headers-2.6.20-15 linux-headers-2.6.20-15-generic linux-image-2.6.20-15-generic --purge

There you are clearly removing versions 2.6.20-15, not 2.6.35-22 nor 2.6.35-23

--Chris
 
Old 01-05-2011, 08:12 AM   #4
jay_pablo_69
Member
 
Registered: Dec 2009
Posts: 60

Original Poster
Blog Entries: 3

Rep: Reputation: 1
@thelastquincy: no i did a clean install of ubuntu 10.10. i'm only trying to clean up/remove the oldest kernel and clean up grub as well i have a dual install of windows and linux, so the kernels are beginning to clog the grub screen.

@critta: Ooops! sorry it was a typo. i used the command (with the correct kernel version):

sudo apt-get remove linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic linux-image-2.6.35-22-generic --purge

but still did not work, same problem as in my first post. but what's wrong with my synaptic manager? it displays all the 3 installed kernels as 'not installed'. that's why i can't even try and remove the kernel 2.6.35-22 from there.

thanks for your replies.

Last edited by jay_pablo_69; 01-05-2011 at 11:31 AM.
 
Old 02-06-2011, 10:16 PM   #5
jay_pablo_69
Member
 
Registered: Dec 2009
Posts: 60

Original Poster
Blog Entries: 3

Rep: Reputation: 1
Hi,

I still can't remove old kernels from my ubuntu 10.10.

Quote:
ls /boot | grep vmlinuz | cut -d'-' -f2,3
2.6.35-22
2.6.35-23
2.6.35-24
2.6.35-25
The above command and result shows kernels installed on my system. I want to remove kernels 2.6.35-22 & 2.6.35-23, and clean up GRUB as well.
Thanks.

Last edited by jay_pablo_69; 02-06-2011 at 10:19 PM. Reason: correction
 
Old 02-06-2011, 10:29 PM   #6
jay_pablo_69
Member
 
Registered: Dec 2009
Posts: 60

Original Poster
Blog Entries: 3

Rep: Reputation: 1
Problem solved!!!

After upgrading to kernel version 2.6.35-25 i can now remove old kernels from the synaptic manager. YEAH!!!

Thanks y'all for your kind assistance!
 
  


Reply

Tags
kernels, purge, ubuntu, ubuntu+10.10



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
Need to remove old versions of Ubuntu kernel joe3eagles Ubuntu 20 01-20-2013 01:57 AM
[SOLVED] How to remove GRUB2 & Ubuntu from MacBook Pro with Windows 7, Ubuntu and OS X? lupusarcanus Linux - Newbie 8 07-18-2010 06:38 PM
remove gnome-desktop ubuntu and strictly use lxde ubuntu 9.04 Jaunty Polanski Linux - Software 1 05-07-2009 01:53 PM
How to remove Ubuntu 7.10 kernel after upgrade to 8/04 HolyJoe Linux - Newbie 6 05-10-2008 06:10 AM
How to remove the previous Ubuntu linux kernel. ussr_1991 Ubuntu 5 07-20-2007 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:47 AM.

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
Open Source Consulting | Domain Registration