LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2006, 11:07 AM   #16
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30

Oh, that i didn't know, thanks for clearing that up. I'll get my laptop fixed (it's using kubuntu) as soon as i get home back from work. Thanks dude.
 
Old 12-09-2006, 11:36 PM   #17
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
Check this up:

Code:
root@laptop:~# dpkg --get-selections | grep linux-image
linux-image-2.6.15-23-386                       install
linux-image-2.6.15-25-386                       install
linux-image-2.6.15-26-386                       install
linux-image-2.6.15-27-386                       install
linux-image-386                                 install
root@laptop:~# dpkg -P linux-image-2.6.15-23-386
dpkg: dependency problems prevent removal of linux-image-2.6.15-23-386:
 linux-restricted-modules-2.6.15-23-386 depends on linux-image-2.6.15-23-386.
dpkg: error processing linux-image-2.6.15-23-386 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 linux-image-2.6.15-23-386
It wouldn't let me erase the oldest image!! Where do i go from here?

When i type the 'uname -a' command, i get the following:
Linux laptop 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux
This is the current image i am using, and it's really stable. I don't need the others, and i suppose they are independent from each other. I guess i can remove the 3 old ones and save a lot of space.

Ok, i will tell you what i did to solve this problem. I grabbed that module that depended on the image, and performed the same command: 'dpkg -P'. Apparently that worked it out because then i could remove the image. I did the same for 23 & 25 kernel images. I prefer to ask you guys whether it's safe to remove 26 as well since it's the closest to the one i am currently using. Thanks for the help. BTW, the man page on dpkg is quite usefull. I was dazzled with that install property, it says there that install means the package is ready for installation, which in this case it seems they were never installed!!!! And yet i am able to use them.

Wierd things i run into!!!

Last edited by trebek; 12-10-2006 at 12:38 AM.
 
Old 12-10-2006, 09:02 AM   #18
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
There should be no problem removing the old kernels if you are not using them. They are independent of each other. If you read the error message you received, it says that the kernel couldn't be removed because the restricted modules package depends on the kernel. Just remove the restricted modules package first, then you can remove the kernel. You would need to do:
Code:
dpkg -P linux-restricted-modules-2.6.15-23-386
dpkg -P linux-image-2.6.15-23-386
I'm assuming that is what you did by reading your post. Glad to hear it worked.
 
Old 12-10-2006, 05:24 PM   #19
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
That's exactly what i did. It was just a wild guess. But that much, jejeje. I will remove 26 then, i just needed to verify, i wouldn't want to screw up my OS, it's taken me quite a while to have it where i want it to be.
 
  


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 carlosinfl Debian 7 03-03-2006 12:10 PM
Removing old kernels? carlosinfl Fedora 1 04-12-2005 09:58 AM
Correct way to remove older, unneeded kernels? wytiger Fedora 7 01-16-2004 09:36 PM
removing kernels? rakriege Linux - Newbie 1 11-09-2003 05:54 PM
removing old kernels in RH 8.0 bobterri Linux - General 2 12-02-2002 09:57 PM

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

All times are GMT -5. The time now is 03:38 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