LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-06-2006, 01:49 PM   #1
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Rep: Reputation: 30
unable to purge an old kernel


Hi

after I compiled a kernel, I booted with it and wanted to remove the old kenrel, and here is what I get towards the end of the messege.

...
dpkg: error processing linux-image-2.6.16.1 (--purge):
subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
linux-image-2.6.16.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

could any body give us an idea as to what to do?

thanks
 
Old 10-06-2006, 03:23 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Did you compile the kernel the Debian Way (i.e. create a *.deb and install it) or did you just compile a kernel and install it yourself?
 
Old 10-06-2006, 05:03 PM   #3
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pljvaldez
Did you compile the kernel the Debian Way (i.e. create a *.deb and install it) or did you just compile a kernel and install it yourself?

the debian way and according to
http://newbiedoc.sourceforge.net/system/kernel-pkg.html
 
Old 10-06-2006, 05:12 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Did you try
Code:
dpkg -P --force-all linux-image-2.6.16.1
 
Old 10-06-2006, 05:15 PM   #5
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pljvaldez
Did you try
Code:
dpkg -P --force-all linux-image-2.6.16.1
yes I did.
 
Old 10-06-2006, 05:18 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What's the output of dpkg -l | grep -i linux-image-2.6.16.1?
 
Old 10-06-2006, 10:19 PM   #7
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pljvaldez
What's the output of dpkg -l | grep -i linux-image-2.6.16.1?
pc linux-image-2.6.16.1 2.6.16.1-10.00.Custom Linux kernel binary image for version 2.6.16
 
Old 10-09-2006, 11:45 AM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Hmm. I forget what the "pc" on the left stands for. Let's try dpkg --status linux-image-2.6.16.1 (or is the package name (linux-image-2.6.16.1 2.6.16.1-10.00.Custom?). There should be a line in the output that says "Status". Maybe it's only partially installed or something and needs a special command switch with dpkg to purge it...
 
Old 10-09-2006, 11:59 AM   #9
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Original Poster
Rep: Reputation: 30
:~$ dpkg --status linux-image-2.6.16.1
Package: linux-image-2.6.16.1
Status: purge ok config-files
Priority: optional
Section: base
Installed-Size: 43656
Maintainer: Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>
Architecture: i386
Source: linux-source-2.6.16.1
Version: 2.6.16.1-10.00.Custom
Provides: linux-image, linux-image-2.6
Depends: coreutils | fileutils (>= 4.0)
Pre-Depends: debconf (>= 0.2.17) | debconf-2.0
Suggests: lilo (>= 19.1) | grub, fdutils, linux-doc-2.6.16.1 | linux-source-2.6.16.1
Description: Linux kernel binary image for version 2.6.16.1
This package contains the Linux kernel image for version
2.6.16.1.
.
It also contains the corresponding System.map file, and the modules
built by the packager. It also contains scripts that try to ensure
that the system is not left in a unbootable state after an update.
.
Kernel image packages are generally produced using kernel-package,
and it is suggested that you install that package if you wish to
create a custom kernel from the sources. Please look at kernel-img.conf(5),
and /usr/share/doc/kernel-package/README.gz from the package kernel-package
for details on how to tailor the installation of this or any other kernel
image package
fred@debian:~$
 
Old 10-09-2006, 12:33 PM   #10
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Interesting. So what it looks like is that this kernel has been purged ok, but the config files are left. That's right, now I remember the three things are "Desired State" "Error" and "Status" (the dpkg -l output is actually "Desired" "Status" then "Error" so pc --> Desired=purge Status=config-files still present Error=none).

You can try reinstalling said package and purging again. Short of that, I'd try using deborphan. that's weird it didn't purge the config files... I can't seem to find what error 128 means though (i.e. what's causing the purge to fail).
 
Old 10-09-2006, 12:39 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Also, maybe try purging again and use the --log=filename.log switch to see if it tells you exactly what is failing.
 
Old 10-09-2006, 03:54 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
MyKernel uninstall / Purge failed due to "Directory not empty"
Upon looking around I found an nvidia folder inside the /lib/modules/<kernel_version> folder

I figured it was because that nvidia folder wasn't created by the kernel install, so the uninstall script choked when it tried to remove it.. I just removed the rest manually.
 
  


Reply



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
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 09:26 AM
Apt-get remove & purge nvidia-kernel-common. safe? Penguin of Wonder Ubuntu 2 03-01-2006 11:11 AM
Disk Cache - How to purge Phorem Linux - Hardware 6 04-21-2004 01:41 PM
sendmail purge ! freelinuxcpp Linux - Networking 2 11-04-2003 03:11 AM
Purge Printer DelMerkin Linux - General 0 06-01-2003 11:15 AM

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

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