apt-get upgrade 返回错误

apt-get upgrade 返回错误

我找不到问题的解决方案,所以决定问一下。当我运行 sudo apt-get upgrade 时,我收到有关 linux-firmware 和 initramfs-tools 的错误

请问你能帮帮我吗?

这是我得到的

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.136ubuntu6.2) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.1) ...
ln: failed to create hard link '/boot/initrd.img-5.4.0-40-generic.dpkg-bak' => '/boot/initrd.img-5.4.0-40-generic': Operation not permitted
update-initramfs: Generating /boot/initrd.img-5.4.0-40-generic
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-40-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.136ubuntu6.2) ...
ln: failed to create hard link '/boot/initrd.img-5.4.0-40-generic.dpkg-bak' => '/boot/initrd.img-5.4.0-40-generic': Operation not permitted
update-initramfs: Generating /boot/initrd.img-5.4.0-40-generic
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-40-generic 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:
 linux-firmware
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容