The relevant error is
---
Setting up linux-image-2.6.31-20-generic (2.6.31-20.57) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.31-20-generic
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-20-generic
Found initrd image: /boot/initrd.img-2.6.31-20-generic
Found linux image: /boot/vmlinuz-2.6.31-19-generic
Found initrd image: /boot/initrd.img-2.6.31-19-generic
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
/etc/grub.d/README: 2: All: not found
/etc/grub.d/README: 4: 00_*:: not found
/etc/grub.d/README: 5: 10_*:: not found
/etc/grub.d/README: 6: Syntax error: "(" unexpected
User postinst hook script [/usr/sbin/update-grub] exited with value 2
dpkg: error processing linux-image-2.6.31-20-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Did you change the permission of the file /etc/grub.d/README to executable manually ?
To workaround this problem open a terminal and run:
$ sudo chmod a-x /etc/grub.d/README
Thanks for your report
The relevant error is 2.6.31- 20-generic (2.6.31-20.57) ... img-2.6. 31-20-generic update- grub. 2.6.31- 20-generic img-2.6. 31-20-generic 2.6.31- 19-generic img-2.6. 31-19-generic 2.6.31- 17-generic img-2.6. 31-17-generic 2.6.31- 14-generic img-2.6. 31-14-generic +.bin update- grub] exited with value 2 2.6.31- 20-generic (--configure):
---
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Microsoft Windows XP Professional on /dev/sda1
/etc/grub.d/README: 2: All: not found
/etc/grub.d/README: 4: 00_*:: not found
/etc/grub.d/README: 5: 10_*:: not found
/etc/grub.d/README: 6: Syntax error: "(" unexpected
User postinst hook script [/usr/sbin/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit status 2
Did you change the permission of the file /etc/grub.d/README to executable manually ?
To workaround this problem open a terminal and run:
$ sudo chmod a-x /etc/grub.d/README
and try performing the upgrade again.