On Wed, Apr 20, 2016 at 06:52:22AM +0000, Bonno Bloksma wrote: > Hi, > > This morning I wanted to do an apt-get update / upgrade cycle on my system. > The update went ok, but during the upgrade I got a " No space left on device" > warning. > [...] > Preparing to replace ssh 1:6.0p1-4+deb7u3 (using > .../ssh_1%3a6.0p1-4+deb7u4_all.deb) ... > Unpacking replacement ssh ... > Processing triggers for man-db ... > /usr/bin/mandb: can't write to /var/cache/man/8774: No space left on device
The good news is that anything in a directory named cache should be a temporary (but long lived) file that can be regenerated if it needs to be. In a tmp directory, on the other hand, you should assume that any file can be deleted arbitrarily. And in a spool directory, you should assume that files need to remain there until their purpose is complete.