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

Bug#388696: linux-image image will not uninstall



Severity: important

Other kernel images are also affected by this bug. I tried to remove
a custom image compiled with the kernel-package and an older standard
debian kernel image, both with the same error. Removal does work,
purge fails (see also bug #390038). Perhaps this may be a bug of the
kernel-package.
I do not know in which state the system is left. Messages like "The link
/vmlinuz is a damaged link" makes me suspicious. So I prefer to raise
this bug to important.


# dpkg -r linux-image-2.6.16.12
(Reading database ... 225441 files and directories currently installed.)
Removing linux-image-2.6.16.12 ...
Running postrm hook /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-2-k7
Found kernel: /boot/vmlinuz-2.6.15-1-k7
Found kernel: /boot/memtest86.bin
Found kernel: /boot/memtest86+.bin
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 lilo

# dpkg --debug=03773 -P linux-image-2.6.16.12
D000001: deferred_remove package linux-image-2.6.16.12
D000001: checking dependencies for remove `linux-image-2.6.16.12'
D000040: checking virtual package `linux-image'
D000040: checking virtual package `linux-image-2.6'
(Reading database ... 224797 files and directories currently installed.)
Removing linux-image-2.6.16.12 ...
D000001: removal_bulk package linux-image-2.6.16.12
D000001: removal_bulk purging? foundpostrm=1
Purging configuration files for linux-image-2.6.16.12 ...
D000002: fork/exec /var/lib/dpkg/info/linux-image-2.6.16.12.postrm ( purge )
Running postrm hook /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-2-k7
Found kernel: /boot/vmlinuz-2.6.15-1-k7
Found kernel: /boot/memtest86.bin
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

dpkg: error processing linux-image-2.6.16.12 (--purge):
 subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
 linux-image-2.6.16.12


# dpkg -P linux-image-2.6.15-1-k7
(Reading database ... 224797 files and directories currently installed.)
Removing linux-image-2.6.15-1-k7 ...
Running postrm hook /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-2-k7
Found kernel: /boot/memtest86.bin
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Purging configuration files for linux-image-2.6.15-1-k7 ...
Running postrm hook /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-2-k7
Found kernel: /boot/memtest86.bin
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

rmdir: /lib/modules/2.6.15-1-k7: Directory not empty
dpkg: error processing linux-image-2.6.15-1-k7 (--purge):
 subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
 linux-image-2.6.15-1-k7

# dpkg -S /lib/modules/2.6.15-1-k7/nvidia/nvidia.ko
nvidia-kernel-2.6.15-1-k7: /lib/modules/2.6.15-1-k7/nvidia/nvidia.ko

(this better should depend on the linux-image ..)

# dpkg -P nvidia-kernel-2.6.15-1-k7 
(Reading database ... 222800 files and directories currently installed.)
Removing nvidia-kernel-2.6.15-1-k7 ...
Purging configuration files for nvidia-kernel-2.6.15-1-k7 ...

# dpkg -P linux-image-2.6.15-1-k7
(Reading database ... 222792 files and directories currently installed.)
Removing linux-image-2.6.15-1-k7 ...
Purging configuration files for linux-image-2.6.15-1-k7 ...
Running postrm hook /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-2-k7
Found kernel: /boot/memtest86.bin
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

dpkg: error processing linux-image-2.6.15-1-k7 (--purge):
 subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
 linux-image-2.6.15-1-k7




Reply to: