磁盘已满,即使它不是


0

df-h得到了我

Filesystem      Size  Used Avail Use% Mounted on

 udev            3,9G     0  3,9G   0% /dev

 tmpfs           785M  9,7M  775M   2% /run

 /dev/sdb5        15G   14G     0 100% /

 tmpfs           3,9G  1,3M  3,9G   1% /dev/shm

 tmpfs           5,0M  4,0K  5,0M   1% /run/lock

 tmpfs           3,9G     0  3,9G   0% /sys/fs/cgroup

 tmpfs           785M   32K  785M   1% /run/user/1000

之后我尝试删除一些大约100MB的文件进入vim写了一行并保存失败。 Sudo apt-get autoclean什么都不做sudo apt-get -f autoremove得到我

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libc++1 libjpeg62
Suggested packages:
  clang
The following packages will be REMOVED:
  linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66
  linux-headers-4.4.0-66-generic linux-headers-4.4.0-70
  linux-headers-4.4.0-70-generic linux-headers-4.4.0-72
  linux-headers-4.4.0-72-generic linux-headers-4.4.0-78
  linux-headers-4.4.0-78-generic linux-image-4.4.0-64-generic
  linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic
  linux-image-4.4.0-72-generic linux-image-extra-4.4.0-64-generic
  linux-image-extra-4.4.0-66-generic linux-image-extra-4.4.0-70-generic
  linux-image-extra-4.4.0-72-generic snap-confine thermald
  ubuntu-core-launcher
The following NEW packages will be installed:
  libc++1 libjpeg62
0 upgraded, 2 newly installed, 21 to remove and 475 not upgraded.
2 not fully installed or removed.
Need to get 304 kB of archives.
After this operation, 1265 MB disk space will be freed.
E: You don't have enough free space in /var/cache/apt/archives/.

这让我无处可去,因为我无法安装一个位。

寻找一些其他解决方案,比如说我应该运行

# tune2fs -m 1 /dev/sdb5

但没有改变,然后我重新启动我的电脑,以防被删除的文件仍然打开,因此不释放内存和 lsof|grep delete 没有给任何东西。


你有没有尝试过 apt-get clean?你也可以删除所有内容 /var/cache/apt/archives 手动通过 rm
dsstorefile1

sudo apt-get clean什么都不做。按照指示删除了缓存,但仍然没有。
Pyrromanis

怎么说 df -i?你可能已经耗尽了所有的inode。
xenoid

是的忘了写这篇文章。除了/ dev / sdb5之外的所有东西都是1%iuse而/ dev / sdb5是48%
Pyrromanis

fsck 说磁盘干净了?
xenoid
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.