我检查了 /tmp 的分区,它似乎已满。
>> df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 23854928 23579092 0 100% /
检查所有分区得到以下结果:
>> df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
tmpfs 2021460 1660 2019800 1% /run
/dev/sda2 1525920 398781 1127139 27% /
tmpfs 2021460 461 2020999 1% /dev/shm
tmpfs 2021460 4 2021456 1% /run/lock
/dev/nvme0n1p1 0 0 0 - /boot/efi
/dev/sda4 57524224 798172 56726052 2% /home
tmpfs 404292 269 404023 1% /run/user/1000
另一个命令(仅针对根目录)给出了以下内容
>> sudo du -d 1 -h /
17M /etc
835M /opt
4.0K /mnt
24G /home
du: cannot access '/run/user/1000/doc': Permission denied
du: cannot access '/run/user/1000/gvfs': Permission denied
2.8M /run
4.0K /cdrom
0 /sys
462M /boot
94M /root
16K /lost+found
4.0K /srv
232K /dev
392K /tmp
9.7G /var
12G /usr
du: cannot access '/proc/4678/task/4678/fd/46': No such file or directory
du: cannot read directory '/proc/1238545/task/1238545/net': Invalid argument
du: cannot read directory '/proc/1238545/net': Invalid argument
du: cannot access '/proc/1582983/task/1582983/fd/4': No such file or directory
du: cannot access '/proc/1582983/task/1582983/fdinfo/4': No such file or directory
du: cannot access '/proc/1582983/fd/3': No such file or directory
du: cannot access '/proc/1582983/fdinfo/3': No such file or directory
0 /proc
203M /media
14G /snap
60G /
我使用的是 Ubuntu 22.04,不知道在哪里以及如何释放空间。我非常感谢您提供的任何帮助。