Comment 4 for bug 350413

Revision history for this message
JuRiJ (juraj-kvasnica) wrote : Re: package linux-image-2.6.27-7-generic 2.6.27-7.16 failed to install/upgrade: le sous-processus pre-removal script a retourné une erreur de sortie d'état 2

I managed to solve this problem.
install grub2
purge old grub (see this bug for more info: https://bugs.launchpad.net/ubuntu/+source/grub/+bug/272885)
purge dkms (remove this file: /etc/kernel/prerm.d/last-good-boot )

purge any linux-image-VERSION you might have installed from previous Ubuntu releases.