A few tips if you are stuck with out any space on the device, and you don’t want to resize partitions.
These two will clean up some things, but need at least some space. So might not work:
apt-get autoclean apt-get autoremove
If they don’t help, a straight up clean should do the trick:
If you’re still stuck, then try to remove some old kernels which you might have downloaded:
uname -r dpkg --get-selections | grep linux-image apt-get purge <whatever is not your current one>
Or you can remove all that are marked with deinstall:
dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`
Hopefully that will have fixed something. You might also want to try and locate some large files, using
find but again that might need some disk space to work with.
A very useful tool to locate large files us ncdu(NCurses Disk Usage) is a curses-based version of the well-known ‘du’, and provides a fast way to see what directories are using your disk space.
To scan and browse the directory you’re currently in, all you need is a simple:
If you want to scan a full filesystem, your root filesystem, for example, then you’ll want to use “-x” (only count files and directories on the same filesystem as the directory being scanned.):
ncdu -x /
1 Mar 2016