![如何解决:处理 linux-image-5.4.0-77-generic 时 dpkg 错误退出状态 1](https://linux22.com/image/192372/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9A%E5%A4%84%E7%90%86%20linux-image-5.4.0-77-generic%20%E6%97%B6%20dpkg%20%E9%94%99%E8%AF%AF%E9%80%80%E5%87%BA%E7%8A%B6%E6%80%81%201.png)
我刚刚在我的笔记本电脑上安装了 Linux Mint。当我尝试更新系统或安装语言包时,出现与 linux-image-5.4.0-77-generic 相关的错误。
例如,如果我执行命令sudo dpkg --configure -a
(我发现这可以解决某些网页中的错误,但它不起作用,并且是重现错误的一种方法),我得到:
Setting up linux-image-5.4.0-77-generic (5.4.0-77.86) ...
Processing triggers for linux-image-5.4.0-77-generic (5.4.0-77.86) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-77-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-77-generic
I: The initramfs will attempt to resume from /dev/sdb3
I: (UUID=d98bd037-090b-4643-8d5d-f0db45378205)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-77-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-77-generic (--configure):
installed linux-image-5.4.0-77-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-77-generic
操作系统 Linux Mint 20.1 Cinnamon
Cinamon 版本 4.8.6
Linux 内核 5.4.0-74-generic
处理器 Intel© Core™ i5-8300H CPU @ 2.30GHz × 4
内存 15.5 GiB
硬盘 1756.4 GB
显卡 Intel Corporation UHD Graphics 630(移动版) ) (prog-if 00 [VGA 控制器])