What is the best way to free up space in Ubuntu12.04

Asked by Gerard Derksen

When I tried to install the security updates in Precise Pangolin Ubuntu 12.4 the other day I received a notice telling me the pc was

short of space and the updates didn't finish installing, In the MS era I used ccleaner and other programs to do the job, but I find

bleach and janitor don't seem to get the same sort of results, is there some other way to do the cleanup in Ubuntu12.04. Thank

You in advance for your help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bleachbit Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Simply use cli which lets you view the procedure and attracts responsibility.
Please open a terminal: ctrl+alt+t
sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean
https://help.ubuntu.com/community/AptGet/Howto

You might haven't removed one kernel image yet:
dpkg -l linux-image* | grep ii
dpkg -l linux-headers* | grep ii

When above display a long list purge all previous images and headers, keep at least one in case the current image fails to boot, of course don't purge the one currently booted.
Which one the currently booted is tells:
uname -r

Example for purge:
sudo purge linux-image-3.2.0-17-generic linux-headers-3.2.0-17

If installations work again maybe try Synaptic:
sudo apt-get install synaptic

In preferences -> files it lets you purge package cache automatically after download or manually and other advanced features.
https://help.ubuntu.com/community/SynapticHowto
http://jaypeeonline.net/tips-tricks/howto-remove-old-ubuntu-kernels/

Revision history for this message
Best Sam_ (and-sam) said :
#2

Erratum:
Example for purge:
sudo purge linux-image-3.2.0-17-generic linux-headers-3.2.0-17
should be:
sudo apt-get purge linux-image-3.2.0-17-generic linux-headers-3.2.0-17

Revision history for this message
Gerard Derksen (geeelldee) said :
#3

Thanks Sam_, that solved my question.