无法删除旧的 linux-image-.... 试过了
sudo apt-get --purge remove linux-image-3.13.0-32-generic
但我遇到了错误
(Reading database ... 278185 files and directories currently installed.)
Removing linux-image-extra-3.13.0-32-generic (3.13.0-32.57) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-32-generic
/boot/vmlinuz-3.13.0-32-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-32-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-32-generic
/boot/vmlinuz-3.13.0-32-generic
/usr/sbin/grub-mkconfig: 13: /etc/default/grub: acpi: 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-extra-3.13.0-32-generic.postrm line 328.
dpkg: error processing package linux-image-extra-3.13.0-32-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-32-generic (3.13.0-32.57) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-32-generic
/boot/vmlinuz-3.13.0-32-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-32-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-32-generic
/boot/vmlinuz-3.13.0-32-generic
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.13.0-32-generic.postrm line 328.
dpkg: error processing package linux-image-3.13.0-32-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-3.13.0-32-generic
linux-image-3.13.0-32-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
谁能告诉我该怎么办?
答案1
这行有一个错误/etc/default/grub
:
GRUB_CMDLINE_LINUX="" acpi = nolapic
它应该是
GRUB_CMDLINE_LINUX="acpi=nolapic"