Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've Ubuntu 12.04 LTS precise pangolin on acer aspire E1-422. Anybody can help me please to solve my problem; there are three old kernel that I cannot remove, it always gives me this error when I update and install package:

(Reading database ... 164740 files and directories currently installed.)
Removing linux-image-3.2.0-58-lowlatency ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-58-lowlatency /boot/vmlinuz-3.2.0-58-lowlatency
update-initramfs: Deleting /boot/initrd.img-3.2.0-58-lowlatency
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-58-lowlatency /boot/vmlinuz-3.2.0-58-lowlatency
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: ^: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-58-lowlatency.postrm line 328.
dpkg: error processing linux-image-3.2.0-58-lowlatency (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.