LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-25-2009, 04:07 PM   #1
kevishnu
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, 04:30 PM   #2
slakmagik
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, 06:12 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

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
 
  


Reply



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 03:14 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Allocating free disk space - start of "/ " needs moving. ibex Linux - General 4 04-17-2006 09:46 PM
Mandrake 10.1 - Linux doesn't "see" free hard drive space scottlyter Linux - General 3 10-15-2004 04:39 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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