DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am getting the errors towards the end when trying to remove a kernel I installed. I need help to find out why and fix them.
thank you
debian:~# dpkg -l linux-image* | grep ^ii
ii linux-image-2.6.15-1-686 2.6.15-8 Linux kernel 2.6.15 image on PPro/Celeron/PI
ii linux-image-2.6.16.060919 2.6.16.060919-10.00.Custom Linux kernel binary image for version 2.6.16
debian:~# cd /boot/
debian:/boot# dpkg -P linux-image-2.6.16.060919
(Reading database ... 83816 files and directories currently installed.)
Removing linux-image-2.6.16.060919 ...
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.15-1-686
Updating /boot/grub/menu.lst ... done
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
Unless you used the optional flag in lilo,
you may need to re-run your boot loader[lilo]
Purging configuration files for linux-image-2.6.16.060919 ...
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.15-1-686
Updating /boot/grub/menu.lst ... done
dpkg: error processing linux-image-2.6.16.060919 (--purge):
subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
linux-image-2.6.16.060919
How did you build that kernel image? Did you build it as a .deb package or from source? In latter case, removing it with dpkg isn't going to work, as there is no package associated with it in it's database. Removing it is actually less complicated as you might think:
# remove the entries in /boot/grub/menu.lst pointing to that kernel
# remove sym-links in /boot to the image, System.map and initrd image
# replace these sym-links to sym-links to the remaining kernel stuff
# remove the kernel-image, System.map and initrd.img
# Done!
also it is worth saying that I just re-installed the package "custom kenrel" and here is the result of the output,
notice there is not initred files in /boot..
**********************************
debian:/usr/src# dpkg -i linux-image-2.6.16.1_2.6.16.1-10.00.Custom_i386.deb
Selecting previously deselected package linux-image-2.6.16.1.
(Reading database ... 83467 files and directories currently installed.)
Unpacking linux-image-2.6.16.1 (from linux-image-2.6.16.1_2.6.16.1-10.00.Custom_i386.deb) ...
Done.
Setting up linux-image-2.6.16.1 (2.6.16.1-10.00.Custom) ...
Running depmod.
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.16.1
Found kernel: /boot/vmlinuz-2.6.15-1-686
Updating /boot/grub/menu.lst ... done
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.