Unable to purge package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-ubuntu-modules-2.6.22 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
#sudo aptitude purge linux-ubuntu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
linux-
0 packages upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 213814 files and directories currently installed.)
Removing linux-ubuntu-
Purging configuration files for linux-ubuntu-
FATAL: Could not open '/boot/
update-initramfs: Generating /boot/initrd.
Cannot find /lib/modules/
update-initramfs: failed for /boot/initrd.
dpkg: error processing linux-ubuntu-
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
I'am unable to purge the package due to an wrong .postrm script because I have uninstalled the linux-image-
I think postrm script needs to check if the correspondents linux-image-
Proposed patch (or something like this):
--- debian/
+++ debian/
@@ -2,7 +2,9 @@
case "$1" in
remove|purge)
- depmod -a -A -q -F /boot/System.
- update-initramfs -u -k @@KVER@@
+ if [ -f /boot/initrd.
+ depmod -a -A -q -F /boot/System.
+ update-initramfs -u -k @@KVER@@
+ fi
;;
esac
I had the same behaviour for linux-ubuntu- modules- 2.6.22- 7-generic.