スペース不足のデバイスを識別する方法 [閉じる]

スペース不足のデバイスを識別する方法 [閉じる]

Bashでコマンドを実行しようとすると、次のエラーが発生します。

bash: cannot create temp file for here-document: No space left on device

ファイルシステム内のすべてのスペースを占有するアイテムを検索するツールをインストールすることもできません。何でもインストールしようとすると、まず次のような文句が出ます。

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-generic : Depends: linux-headers-3.13.0-95-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

しかし、実行するとsudo apt-get -f install失敗します。

No apport report written because the error message indicates a disk full error
                                                                              dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.13.0-95-generic_3.13.0-95.142_amd64.deb (--unpack):
 error creating symbolic link `./usr/src/linux-headers-3.13.0-95-generic/include/linux/ecryptfs.h': No space left on device
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.13.0-95-generic_3.13.0-95.142_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ただし、これを実行すると、df -Hマイ/パーティションが82%しかなく、まだ1.5Gのスペースが残っているとマークされます。

空き容量が報告されないのはなぜですか?ルートを参照しているかどうかを確認できますか?それでは、その理由は何ですか?

ベストアンサー1

おすすめ記事