在 Debian Stretch 上重新安装损坏的内核 4.9.0.9

在 Debian Stretch 上重新安装损坏的内核 4.9.0.9

最近,英特尔芯片出现错误后,我升级了我的 Debian Stretch 服务器。微代码更新正常,但update-initramfs挂了。因此,我将其关闭并尝试删除内核,然后再尝试重新安装。删除过程也挂了:

% dpkg --remove --force-depends linux-image-4.9.0-9-amd64
dpkg: linux-image-4.9.0-9-amd64: dependency problems, but removing anyway as you requested:
 linux-image-amd64 depends on linux-image-4.9.0-9-amd64.
(Reading database ... 228637 files and directories currently installed.)
Removing linux-image-4.9.0-9-amd64 (4.9.168-1+deb9u2) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.9.0-9-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64

它似乎挂在postrm脚本上:

% ps axuw |grep dpkg
root       467  0.0  0.0  12780   972 pts/8    S+   21:25   0:00 grep dpkg
root     32074  0.1  0.1  65668 52804 pts/7    S+   21:23   0:00 dpkg --remove --force-depends linux-image-4.9.0-9-amd64
root     32075  0.0  0.0   4276   708 pts/7    S+   21:23   0:00 /bin/sh -e /var/lib/dpkg/info/linux-image-4.9.0-9-amd64.postrm remove

我该如何修复它?

相关内容