installation of kernel image failed: Could not find postinst hook script [usr/sbin/update-grub]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
This important security update failed. It was notified, as all updates, by Update Manager (in the Hardy Important Security updates). I expected the package to install normally but instead it crashed and I was invited to fill in this report.
DistroRelease: Ubuntu 8.04
:: Symptoms ::
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Could not find postinst hook script [usr/sbin/
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: error processing linux-image-
subprocess post-installation script returned error exit status 2
:: Test Case ::
(DONT DO THAT ON A PRODUCTION SYSTEM)
Run the following command:
sudo apt-get remove --purge grub
Nothing complains about it and you don't have a boot loader anymore.
:: Workaround::
Install grub by running following commands on a console/shell:
sudo apt-get install --reinstall grub
It should bring you back the /usr/sbin/
Nothing protects the user against the removal of grub, then all updates of the kernel will fail.
Changed in linux: | |
status: | New → Confirmed |
description: | updated |
Changed in linux: | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
description: | updated |
I've seen this kind of error in bug 179984 already.
Maybe the comments there might help to solve/debug this.