Kubuntu 20.04:/boot
磁盘大小为 500MB,但只有 7MB 可用。当我尝试从启动菜单进行修复时,它说我需要释放空间。
尝试过
sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get install --fix-broken
sudo apt-get install -f
sudo apt-get remove ––purge package_name
sudo apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade
我总是得到:
Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.4.0-47-generic (5.4.0-47.51) ...
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
Setting up linux-image-5.4.0-48-generic (5.4.0-48.52) ...
I: /boot/initrd.img is now a symlink to initrd.img-5.4.0-48-generic
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-45-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=667e1f29-5952-421e-b068-dc53873735bc)
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-45-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-47-generic (5.4.0-47.51) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-47-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-47-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=667e1f29-5952-421e-b068-dc53873735bc)
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-47-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-47-generic (--configure):
installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-48-generic (5.4.0-48.52) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-48-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-48-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=667e1f29-5952-421e-b068-dc53873735bc)
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-48-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-48-generic (--configure):
installed linux-image-5.4.0-48-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
linux-image-5.4.0-47-generic
linux-image-5.4.0-48-generic
我也尝试过:
sudo apt purge linux-image-5.4.0-48-generic
sudo apt purge linux-image-5.4.0-47-generic
因为我在启动盘中都有它们,但是我得到:
Processing triggers for linux-image-unsigned-5.4.0-48-generic (5.4.0-48.52) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-45-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=667e1f29-5952-421e-b068-dc53873735bc)
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-45-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:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)