update-grub is in /usr/sbin, but kernel-img.conf looks for it in /sbin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-image-
It's looking for update-grub in /sbin, but it's actually in /usr/sbin
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
W: mdadm: unchecked configuration file: /etc/mdadm/
W: mdadm: please read /usr/share/
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
The provided postinst hook script [/sbin/update-grub] could not be run.
dpkg: error processing linux-image-
subprocess post-installation script returned error exit status 2
Btw, im using grub2 package:
# which update-grub
/usr/sbin/
# dpkg -S update-grub
grub2: /usr/sbin/
grub2: /usr/share/
DIRTY FIX:
ln -sf /usr/sbin/
Changed in grub2: | |
status: | Unconfirmed → Confirmed |
summary: |
- Package: linux-image-2.6.20-5-generic fails to install + update-grub is in /usr/sbin, but kernel-img.conf looks for it in /sbin |
I seem to have update-grub in both /sbin and /usr/sbin and the 2.6.20-5-generic kernel works fine for me :
iks@max:~$ ls -l /sbin/update-grub update- grub update- grub
-rwxr-xr-x 1 root root 616 2006-12-20 17:44 /sbin/update-grub
iks@max:~$ ls -l /usr/sbin/
-rwxr-xr-x 1 root root 35685 2006-12-20 17:44 /usr/sbin/
iks@max:~$ uname -r
2.6.20-5-generic
I suppose you are using Feisty. Did you upgrade from an Edgy isntall or did you isntall it from scratch ?