![在 Debian Stretch 上重新安装损坏的内核 4.9.0.9](https://linux22.com/image/737836/%E5%9C%A8%20Debian%20Stretch%20%E4%B8%8A%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%E6%8D%9F%E5%9D%8F%E7%9A%84%E5%86%85%E6%A0%B8%204.9.0.9.png)
最近,英特尔芯片出现错误后,我升级了我的 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
我该如何修复它?