![当我运行 sudo apt-get Upgrade 时,它显示有关 initramfs-tools 的错误](https://linux22.com/image/230926/%E5%BD%93%E6%88%91%E8%BF%90%E8%A1%8C%20sudo%20apt-get%20Upgrade%20%E6%97%B6%EF%BC%8C%E5%AE%83%E2%80%8B%E2%80%8B%E6%98%BE%E7%A4%BA%E6%9C%89%E5%85%B3%20initramfs-tools%20%E7%9A%84%E9%94%99%E8%AF%AF.png)
当我运行时sudo apt-get upgrade
,我得到以下输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
E: /usr/share/initramfs-tools/hooks/fuse failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.1.0-18-amd64 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)
首先我使用Ubuntu。我认为可能是操作系统的问题,所以我改用了 Debian。sudo apt-get
由于此错误,所有相关命令都会失败。
我的机器有足够的存储空间 (3 TB),但我只使用了大约 1%。
@Stéphane Chazelas 这是输出df -T / /tmp /boot
:
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/nvme1n1p2 ext4 1920224544 377924596 1444684128 21% /
/dev/nvme1n1p2 ext4 1920224544 377924596 1444684128 21% /
/dev/nvme1n1p2 ext4 1920224544 377924596 1444684128 21% /
我尝试过使用sudo apt-get autoremove && sudo apt-get clean
,但总是会出现此错误。
我怎样才能解决这个问题?