I have been trying to update my xubuntu version but it keep saying there's no enough space on disk. The window says me to execute "sudo apt-get clean" but I have no answer. It just don't do anything. How can I free space on disk if "sudo apt-get clean" is not working??
sudo apt-get clean will remove all the local copy of the packages that you may have downloaded when doing an installation. This will almost empty the
But this is not the only place where a lot of space can be wasted, without any importance order:
/var/logwhich contains most of the log for your system. You may want to delete the old logs. You may want also to tweak the configuration of the logrotation program to reduce the amount of logs saved and archived. In the file
/etc/logrotate.confand all the files present under
/etc/logrotate.dlook for the line beginning by
rotation. The number after means how many logs are kept on the system.
/var/tmpand any other
tmpdirectories found on the system.
- Your own Trash folder may be full of items that can be purged.
- Cache of your web browser: usually, in the preferences settings of any web browser, there is a place where you can define the maximum size it can occupy and also to do a purge of it (removing history, old downloaded files, ...)
- In your home directory, there is a
Downloadfolder, maybe it is full of things you don't need anymore and that can be safely deleted.
And these are only the few general things I'm thinking about. Depending on how you use your system (applications installed and so on), there may be some other directories to check and to empty.