Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 09-25-2009, 05:07 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
"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'.
Old 09-25-2009, 05:30 PM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Welcome to LQ.

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.
Old 09-25-2009, 07:12 PM   #3
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
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.

Hope that helps,

–Robert J Lee


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link "free space on Hard Drive to LINUX" navin_karnam Linux - Desktop 2 06-21-2007 04:14 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
Allocating free disk space - start of "/ " needs moving. ibex Linux - General 4 04-17-2006 10:46 PM
Mandrake 10.1 - Linux doesn't "see" free hard drive space scottlyter Linux - General 3 10-15-2004 05:39 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 02:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration