我一直尝试删除 Ubuntu 20.04.4 LTS 机器上的某些软件,但收到如下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'wine' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 356 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.14.0-1038-oem
I: The initramfs will attempt to resume from /dev/sda5
I: (UUID=53828a0a-2523-4597-b0e3-3ae0138fc4e9)
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.14.0-1038-oem with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
我无法安装或删除任何软件。如何修复此问题?
答案1
尝试
sudo apt-get update
然后尝试安装。请确保您已连接到互联网。