Clear space on HDD ???

Asked by WillTell on 2013-04-11

I have Ubuntu 12.04.2 (Studio version) on an IBM Thinkcenter which is the only OS on this computer , I do have a number of ISO's , about 20, on this box and still about 100gig or so free space I have sacrificed about another gig of supurfluous files, emptied the trash, and run both "sudo apt-get clean" and sudo apt-get autoclean".

Yet when I try the Update Manager to update I get the response :
===========================================================================

Not enough free disk space

The upgrade needs a total of 24.9 M free space on disk '/boot'. Please free at least an additional 24.5 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

==============================================================================

I have never had trouble with updates before, can someone help me with this ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
mrinal gour
Solved:
2013-04-11
Last query:
2013-04-11
Last reply:
2013-04-11
Best mrinal gour (mrinal-gour) said : #1

Hi there,

the problem is due to the fact that while ubuntu upgrades the kernels automatically, it does not clean-up or delete the old ones thereby eating-up ur disk space resulting in the crunch! the steps to solve this problem are as follows:

try doing this on the "terminal"

$ dpkg --get-selections | grep linux-image

from the list displayed delete the old kernels by using the command:

$ sudo apt-get purge (oldest-kernel)
or for a specific example:
$ sudo apt-get purge linux-image-2.6.31-14-generic

and u r done....
REMEMBER, WHATEVER YOU DO; DO NOT DELETE linux-image-generic

WillTell (tell-will) said : #2

Thanks mrinal gour, that solved my question.