"clean" or emptying trash does not free up enough space for updates
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"clean" or emptying trash does not free up enough space for updates
This message comes up when I try to upgrade
The upgrade needs a total of 400M free space on disk '/'. Please free at least an additional 394M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
What is your question? How you can free up space? One thing that's helpful is to run 'du' on your directories to find out what's using the most space. It's likely that there's stuff in /tmp that you don't need. And, yeah, as the help says, clean out your cache as well. You ran the apt-get command and that only freed 6 megs and you were slam full before that? That seems peculiar. Also, if you have multiple partitions, you can try temporarily or permanently moving stuff around to free space on the partition where you need it.
You really need to provide more information: output of df, how your stuff is mounted, what steps you've taken so far, what results you got. Etc.
kevishnu, As the command output says, you can free up space by typing "sudo apt-get clean". This deletes files that have been downloaded and already installed, and so are no longer needed.
One way to free up space is by uninstalling software that you don't use; most distributions install a large number of software packages to try and cover everything that most users may want to do. You should only delete things if you know what they do or are sure that you won't use them - packages needed for bluetooth, for example, won't be needed if you never use bluetooth.
You can also try deleting files from the / partition. Linux and UNIX systems organise all your files, on all disks or partitions that you might have, into one big hierarchy (or "tree") structure. Type "mount" to see a list of all the various parts of the filesystem; you will see things like /proc, /dev and maybe /home or /var; each of these is a separate filesystem and so is not part of the root (/) filesystem; deleting files from any other directory will save space on /.
Another option is to update packages one at a time; try picking the first file from the list of proposed updates (which should appear just before the output you posted) and doing "sudo apt-get dist-upgrade package". This will perform fewer updates and should require less space; you can then run "sudo apt-get clean" to delete the newly downloaded packages after they are installed before continuing to the next package. You can't break your system this way; each package will also update any packages on which it depends.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.