[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

re: not able to purge a kernel





Jude DaShiell <jdashiel@shellworld.net> wrote:
I think it would have purged successfully if you had been running 2.6.15
at the time of the attempted purge. I think you were running 2.6.16 and
debian doesn't like to purge a running kernel. Suggestion would be to
comment out the kernel line down toward the bottom of menu.lst for kernel
2.6.16 and reboot the computer and see if you get kernel 2.6.15 up you can
do uname -ar to find out or look at the screen as it comes up in the very
beginning. Then try that purge again.


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.1      2.6.16.1-10.00.Custom      Linux kernel binary image for version 2.6.16

fred@debian:~$ sudo apt-get --purge remove linux-image-2.6.16.1
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
  linux-image-2.6.16.1*
0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.
Need to get 0B of archives.
After unpacking 44.7MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 85385 files and directories currently installed.)
Removing linux-image-2.6.16.1 ...
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.1 ...
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.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)
fred@debian:~$ firefox -safe-mode&
[1] 5079

fred@debian:~$ uname -ar
Linux debian 2.6.15-1-686 #2 Mon Mar 6 15:27:08 UTC 2006 i686 GNU/Linux
fred@debian:~$

notice I used sudo in the process above.


Stay in the know. Pulse on the new Yahoo.com. Check it out.
Reply to: