My computer is almost full (7G b of 10Gb) but I only use it to email and search web. No video or image files. I install all updates. Are old updates ever purged?

Asked by Wayne H.

Almost all my hard drive memory is used (7 GB of 10GB) I install all updates. I clear cache and old emails regularly. I have no photo or video files. Are old update files purged? If not, how do you purge them? I use my computer to email and make web searches. I store nothing.

Also, after a recent update I get the notice that my adobe flash plug-in has crashed. Any is fix in the works.

I have an old computer and am not very computer literate. Please help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can do a few things:

1: run: sudo apt-get clean

This will delete the debs used in updates.

2. Remove old kernels

if you run:
uname -a

You will see your CURRENT kernel version. If you then run:
dpkg -l | grep linux-image-2

You will see the INSTALLED kernels. If you remove the kernels you do not need but do NOT remove the CURRENT kernel, you will gain ~120Mb per kernel.

3. Install lighter Office productivity.

OpenOffice is an absolute beast weighing in at nearly 400Mb. If you remove this and install Abiword and / or gnumeric you can save 200Mb easily. You can also use googledocs etc and require no office suite installed AT ALL but will require web access to word process etc.

4. Remove ubuntu-docs

Again, this is a whopping 250Mb and is a lot of stuff you'll never read if you have a web connection most times. It's pretty useless and can save you a lot of space by removing it.

5. Run bleachbit

Run it as both root, then as user. be VERY careful of settings or it will clean browser settings etc, also avoid settings which say they will take a long time. Have as many apps closed as you can as this will release files from app-lock

All these will help you reduce used space. My root partition is 3Gb used and I have 75Gb for /home on its seperate partition.

Revision history for this message
Sam_ (and-sam) said :
#2
Revision history for this message
Wayne H. (sailmates) said :
#3

Thank you for the reply. The described things I can do sound like they
will fix the problem.

However.......I'm not very computer savy. I need instruction on how I
go about run: sudo apt-get clean and other run instructions. I know
how to turn on the computer and it loads firefox, mozilla etc. I don't
know how to give instructions to the computer.

Thanks, Wayne

On Mon, 2010-08-02 at 17:03 +0000, actionparsnip wrote:
> Your question #119727 on firefox in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/firefox/+question/119727
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> You can do a few things:
>
> 1: run: sudo apt-get clean
>
> This will delete the debs used in updates.
>
> 2. Remove old kernels
>
> if you run:
> uname -a
>
> You will see your CURRENT kernel version. If you then run:
> dpkg -l | grep linux-image-2
>
> You will see the INSTALLED kernels. If you remove the kernels you do not
> need but do NOT remove the CURRENT kernel, you will gain ~120Mb per
> kernel.
>
> 3. Install lighter Office productivity.
>
> OpenOffice is an absolute beast weighing in at nearly 400Mb. If you
> remove this and install Abiword and / or gnumeric you can save 200Mb
> easily. You can also use googledocs etc and require no office suite
> installed AT ALL but will require web access to word process etc.
>
> 4. Remove ubuntu-docs
>
> Again, this is a whopping 250Mb and is a lot of stuff you'll never read
> if you have a web connection most times. It's pretty useless and can
> save you a lot of space by removing it.
>
> 5. Run bleachbit
>
> Run it as both root, then as user. be VERY careful of settings or it
> will clean browser settings etc, also avoid settings which say they will
> take a long time. Have as many apps closed as you can as this will
> release files from app-lock
>
> All these will help you reduce used space. My root partition is 3Gb used
> and I have 75Gb for /home on its seperate partition.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

The instruction I gave are all to be ran in a terminal which can be ran using CTRL+ALT+T

The installation / removal of stuff can be done in software centre

Revision history for this message
Wayne H. (sailmates) said :
#5

Thank you for the reply.

However........ I must be doing something wrong. I tried the CTRL+ALT+T
(I presume this means push all 3 keys at the same time) When Ubuntu was
fully loaded. Nothing happened.

Next I tried CTRL+ALT+T just as the computer was starting. Nothing

Next I went to Ubuntu Accessories and opened TERMINAL. I tried the CTRL
+ALT+T. Nothing happened. I tried sudo apt-get clean. They asked for
a password which I entered. Nothing happened. Next I tried run: sudo
apt-get clean. The computer said it didn't recognize the run command.

Help. As you can see. My computer knowledge is very limited and I'm
just fumbling around.

Thanks for your patience.

On Tue, 2010-08-03 at 06:56 +0000, actionparsnip wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> The instruction I gave are all to be ran in a terminal which can be ran
> using CTRL+ALT+T
>
> The installation / removal of stuff can be done in software centre
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

You can run a terminal from: Applications -> Accessories -> Terminal
too

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

Wayne,
this is the terminal
https://help.ubuntu.com/community/GnomeTerminal

in other words CLI
https://secure.wikimedia.org/wikipedia/en/wiki/Command-line_interface

After the so-called prompt you start to type e.g.
sudo apt-get clean
password for Wayne:
## It usually is the same as you login with, you don't see any stars or alike while typing it.
Hit [Enter] key afterwards.
FAQ #62

If you can't make friendship with CLI at the moment, use GUI e.g. Synaptic (package manager).
It has a self explanatory tree view were it may include packages which can safely be removed.
https://help.ubuntu.com/community/SynapticHowto

Under settings dialog, tab 'installed files', downloaded packages can be removed from so-called package cache.

To remove kernel images, you can search for 'linux-image', highlight the 'older' image, right click, remove completely, apply.
Make sure not to remove the one which is currently booted.

## This is one reason to prefer CLI, it's easier to control what the user is doing, much less complicated than to give long explanations about using the GUI and preventing the user from making wrong steps.

However, be patient with yourself, concentrate during the procedure and if uncertain rather ask.
Although, you may remember that you've solved similar issues over one year ago, so have confidence in yourself.
Question #64147

Revision history for this message
Wayne H. (sailmates) said :
#8

I tried your instructions but can't get anything to work. I must be
doing something wrong. I tried it both as my normal login and as root.

In terminal I tried to run: sudo apt-get clean nothing happened.

In terminal I did managed to run: uname -a and determined my current
kernel version (desktop 2.6.29-28 generic #1 smp 66nu/linux)

I tried to run: dpkg -1 (vertical line I can't find on my keyboard)
grep linux-image -2. It didn't work.

I'm not clear what I'm doing wrong.

Thanks for the help.

Wayne

On Mon, 2010-08-02 at 17:03 +0000, actionparsnip wrote:
> Your question #119727 on firefox in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/firefox/+question/119727
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> You can do a few things:
>
> 1: run: sudo apt-get clean
>
> This will delete the debs used in updates.
>
> 2. Remove old kernels
>
> if you run:
> uname -a
>
> You will see your CURRENT kernel version. If you then run:
> dpkg -l | grep linux-image-2
>
> You will see the INSTALLED kernels. If you remove the kernels you do not
> need but do NOT remove the CURRENT kernel, you will gain ~120Mb per
> kernel.
>
> 3. Install lighter Office productivity.
>
> OpenOffice is an absolute beast weighing in at nearly 400Mb. If you
> remove this and install Abiword and / or gnumeric you can save 200Mb
> easily. You can also use googledocs etc and require no office suite
> installed AT ALL but will require web access to word process etc.
>
> 4. Remove ubuntu-docs
>
> Again, this is a whopping 250Mb and is a lot of stuff you'll never read
> if you have a web connection most times. It's pretty useless and can
> save you a lot of space by removing it.
>
> 5. Run bleachbit
>
> Run it as both root, then as user. be VERY careful of settings or it
> will clean browser settings etc, also avoid settings which say they will
> take a long time. Have as many apps closed as you can as this will
> release files from app-lock
>
> All these will help you reduce used space. My root partition is 3Gb used
> and I have 75Gb for /home on its seperate partition.
>

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

Wayne,
first off, when you reply via email please turn off the quoting, it makes answers difficult to follow and almost unreadable. Consider to answer directly on the page instead via email.
Klick on: https://answers.launchpad.net/ubuntu/+question/119727

> In terminal I tried to run: sudo apt-get clean nothing happened.

That's normal behaviour.

> kernel version 2.6.29-28 generic

?? The only 2.6.29 I found are mainline or for Mac.

## Please don't type commands, copy and paste it in your terminal.

uname -r

lsb_release -d

dpkg -l linux-image* | grep ii

## Please copy and paste the exact output here.

Wayne, you need to maintain your system active, in specific package management, more specific kernel images, they don't get removed autotmatically, in case a new one introduces issues, so the user can boot from the former one.
As mentioned maybe take a look in your question from a year ago where you've managed to solve the issue.
https://answers.launchpad.net/ubuntu/+source/update-manager/+question/64147

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#10

it's

dpkg -l

not

dpkg -1

the line is a pipe, we gave the commands so you can copy and paste the commands directly. If you hunt around the keyboard near Z or left of number 1 (one) or near the enter key you will find it.

Revision history for this message
Wayne H. (sailmates) said :
#11

Thanks actionparsnip, that solved my question.

Revision history for this message
Wayne H. (sailmates) said :
#12

On Sat, 2010-08-21 at 23:43 +0000, Sam wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> Status: Open => Answered
>
> Sam proposed the following answer:
> Wayne,
> first off, when you reply via email please turn off the quoting, it makes answers difficult to follow and almost unreadable. Consider to answer directly on the page instead via email.
> Klick on: https://answers.launchpad.net/ubuntu/+question/119727
>
> > In terminal I tried to run: sudo apt-get clean nothing happened.
>
> That's normal behaviour.

How do I know it if the command did anything?
>
> > kernel version 2.6.29-28 generic
>
> ?? The only 2.6.29 I found are mainline or for Mac.
>
> ## Please don't type commands, copy and paste it in your terminal.
>
> uname -r
>
> lsb_release -d
>
> dpkg -l linux-image* | grep ii
>
> ## Please copy and paste the exact output here.sailmates@computer-desktop:~$ uname -a
Linux computer-desktop 2.6.24-28-generic #1 SMP Wed Aug 18 21:19:55 UTC
2010 i686 GNU/Linux
sailmates@computer-desktop:~$
sailmates@computer-desktop:~$
sailmates@computer-desktop:~$ uname -r
2.6.24-28-generic
sailmates@computer-desktop:~$ lsb_release -d
Description: Ubuntu 8.04.4 LTS
sailmates@computer-desktop:~$ lsb_release -d
Description: Ubuntu 8.04.4 LTS
sailmates@computer-desktop:~$ dpkg -l linux-image* | grep ii
ii linux-image-2.6.20-16-generic 2.6.20-16.32
Linux kernel image for version 2.6.20 on x86
ii linux-image-2.6.22-14-generic 2.6.22-14.52
Linux kernel image for version 2.6.22 on x86
ii linux-image-2.6.24-16-generic 2.6.24-16.30
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-17-generic 2.6.24-17.31
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-18-generic 2.6.24-18.32
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-19-generic 2.6.24-19.41
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-21-generic 2.6.24-21.43
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-22-generic 2.6.24-22.45
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-23-generic 2.6.24-23.52
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-24-generic 2.6.24-24.61
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-25-generic 2.6.24-25.63
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-26-generic 2.6.24-26.64
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-27-generic 2.6.24-27.69
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-28-generic 2.6.24-28.75
Linux kernel image for version 2.6.24 on x86
ii linux-image-generic 2.6.24.28.30
Generic Linux kernel image
sailmates@computer-desktop:~$
sailmates@computer-desktop:~
>
> Wayne, you need to maintain your system active, in specific package management, more specific kernel images, they don't get removed autotmatically, in case a new one introduces issues, so the user can boot from the former one.
> As mentioned maybe take a look in your question from a year ago where you've managed to solve the issue.
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/64147

Thanks,
I think I'm (we're) getting somewhere. I tried to remove the kernels
after I saw them in terminal but didn't figure out how to do it. The
"delete key didn't work and I didn't see anything on the task bar..

Wayne
>

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#13

From terminal type:

uname -a

to see yuor running kernel please don't touch (remove) it

Then from terminal type:

sudo apt-get purge linux-image-2.6.20-16-generic
sudo apt-get purge linux-headers-2.6.20-16-generic
sudo apt-get purge linux-headers-2.6.20-16

Please repeat the command for all installed kernels...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#14

Wow!! That's the most I've EVER seen!

You are using the kernel 2.6.24-28-generic but have ALL the others installed too.

This command will free up LOTS of space for you:

df -h | head -n 2 > ~/space12345.txt; sudo apt-get --purge -y remove linux-image-2.6.20-16-generic linux-image-2.6.22-14-generic 2.6.22-14.52 linux-image-2.6.24-16-generic linux-image-2.6.24-17-generic 2.6.24-17.31 linux-image-2.6.24-18-generic linux-image-2.6.24-19-generic 2.6.24-19.41 linux-image-2.6.24-21-generic linux-image-2.6.24-22-generic 2.6.24-22.45 linux-image-2.6.24-23-generic linux-image-2.6.24-24-generic 2.6.24-24.61 linux-image-2.6.24-25-generic linux-image-2.6.24-26-generic 2.6.24-26.64 linux-image-2.6.24-27-generic; sudo apt-get --purge autoremove; df -h | head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm ~/space12345

This will remove the excess kernels. I also included a cheeky bit in the command to show the space before and after

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

Nice cmd.
Seems Ubuntu doesn't bother about user conception, it runs and runs and runs....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#16

Yep, it doesn't remove old kernels, its good to keep the current one after a kernel upgrade because if the new kernel is bad then you can roll back to the old working one. Unfortunately this keeps ALL the old kernels. You can configure grub to only show a certain number of kernels but the old ones will still be installed.

Revision history for this message
Wayne H. (sailmates) said :
#17

On Sun, 2010-08-22 at 23:23 +0000,
I tried it and this is what I got the first time.
sailmates@computer-desktop:~$ df -h | head -n 2 > ~/space12345.txt; sudo
apt-get --purge -y remove
[sudo] password for sailmates:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sailmates@computer-desktop:~$

I tried it again and this is what I got.

  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sailmates@computer-desktop:~$ linux-image-2.6.20-16-generic
linux-image-2.6.22-14-generic 2.6.22-14.52
bash: linux-image-2.6.20-16-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-16-generic
linux-image-2.6.24-17-generic 2.6.24-17.31
bash: linux-image-2.6.24-16-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-18-generic
linux-image-2.6.24-19-generic 2.6.24-19.41
bash: linux-image-2.6.24-18-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-21-generic
linux-image-2.6.24-22-generic 2.6.24-22.45
bash: linux-image-2.6.24-21-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-23-generic
linux-image-2.6.24-24-generic 2.6.24-24.61
bash: linux-image-2.6.24-23-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-25-generic
linux-image-2.6.24-26-generic 2.6.24-26.64
bash: linux-image-2.6.24-25-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-27-generic; sudo
apt-get --purge autoremove; df -h |
> head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm
~/space12345

My disk usage analyzer still show the same amount of usage butI can only
see 1.3 gb usage in home with 1.1 of that in evolution.

Thanks for the help. I think we're getting closer and I'm learning.

 actionparsnip wrote:
> df -h | head -n 2 > ~/space12345.txt; sudo apt-get --purge -y remove
> linux-image-2.6.20-16-generic linux-image-2.6.22-14-generic
> 2.6.22-14.52
> linux-image-2.6.24-16-generic linux-image-2.6.24-17-generic
> 2.6.24-17.31
> linux-image-2.6.24-18-generic linux-image-2.6.24-19-generic
> 2.6.24-19.41
> linux-image-2.6.24-21-generic linux-image-2.6.24-22-generic
> 2.6.24-22.45
> linux-image-2.6.24-23-generic linux-image-2.6.24-24-generic
> 2.6.24-24.61
> linux-image-2.6.24-25-generic linux-image-2.6.24-26-generic
> 2.6.24-26.64
> linux-image-2.6.24-27-generic; sudo apt-get --purge autoremove; df -h
> |
> head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm
> ~/space12345

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#18

Copy the WHOLE thing as ONE command and run it. It will work

Revision history for this message
Wayne H. (sailmates) said :
#19

This is what I copied and pasted.

df -h | head -n 2 > ~/space12345.txt; sudo apt-get --purge -y remove
linux-image-2.6.20-16-generic linux-image-2.6.22-14-generic 2.6.22-14.52
linux-image-2.6.24-16-generic linux-image-2.6.24-17-generic 2.6.24-17.31
linux-image-2.6.24-18-generic linux-image-2.6.24-19-generic 2.6.24-19.41
linux-image-2.6.24-21-generic linux-image-2.6.24-22-generic 2.6.24-22.45
linux-image-2.6.24-23-generic linux-image-2.6.24-24-generic 2.6.24-24.61
linux-image-2.6.24-25-generic linux-image-2.6.24-26-generic 2.6.24-26.64
linux-image-2.6.24-27-generic; sudo apt-get --purge autoremove; df -h |
head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm ~/space12345

This is what I got.
  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sailmates@computer-desktop:~$ linux-image-2.6.20-16-generic
linux-image-2.6.22-14-generic 2.6.22-14.52
bash: linux-image-2.6.20-16-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-16-generic
linux-image-2.6.24-17-generic 2.6.24-17.31
bash: linux-image-2.6.24-16-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-18-generic
linux-image-2.6.24-19-generic 2.6.24-19.41
bash: linux-image-2.6.24-18-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-21-generic
linux-image-2.6.24-22-generic 2.6.24-22.45
bash: linux-image-2.6.24-21-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-23-generic
linux-image-2.6.24-24-generic 2.6.24-24.61
bash: linux-image-2.6.24-23-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-25-generic
linux-image-2.6.24-26-generic 2.6.24-26.64
bash: linux-image-2.6.24-25-generic: command not found
sailmates@computer-desktop:~$ linux-image-2.6.24-27-generic; sudo
apt-get --purge autoremove; df -h |

I tried it a second time. This is what I copied and pasted.

df -h | head -n 2 > ~/space12345.txt; sudo apt-get --purge -y remove
linux-image-2.6.20-16-generic linux-image-2.6.22-14-generic 2.6.22-14.52
linux-image-2.6.24-16-generic linux-image-2.6.24-17-generic 2.6.24-17.31
linux-image-2.6.24-18-generic linux-image-2.6.24-19-generic 2.6.24-19.41
linux-image-2.6.24-21-generic linux-image-2.6.24-22-generic 2.6.24-22.45
linux-image-2.6.24-23-generic linux-image-2.6.24-24-generic 2.6.24-24.61
linux-image-2.6.24-25-generic linux-image-2.6.24-26-generic 2.6.24-26.64
linux-image-2.6.24-27-generic; sudo apt-get --purge autoremove; df -h |
head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm ~/space12345

This is what I got.

> head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm
~/space12345df -h | head -n 2 > ~/space12345.txt; sudo apt-get --purge
-y remove
bash: linux-image-2.6.24-27-generic: command not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
The following packages will be REMOVED:
  libnspr4-dev* libnss3-dev* xulrunner-1.9-gnome-support*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 3039kB disk space will be freed.
Do you want to continue [Y/n]? y
Abort.

cat: /home/sailmates/space12345: No such file or directory
rm: invalid option -- h
Try `rm --help' for more information.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sailmates@computer-desktop:~$

What am I doing wrong?

On Sun, 2010-08-22 at 23:23 +0000, actionparsnip wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> actionparsnip posted a new comment:
> Wow!! That's the most I've EVER seen!
>
> You are using the kernel 2.6.24-28-generic but have ALL the others
> installed too.
>
> This command will free up LOTS of space for you:
>
> df -h | head -n 2 > ~/space12345.txt; sudo apt-get --purge -y remove
> linux-image-2.6.20-16-generic linux-image-2.6.22-14-generic 2.6.22-14.52
> linux-image-2.6.24-16-generic linux-image-2.6.24-17-generic 2.6.24-17.31
> linux-image-2.6.24-18-generic linux-image-2.6.24-19-generic 2.6.24-19.41
> linux-image-2.6.24-21-generic linux-image-2.6.24-22-generic 2.6.24-22.45
> linux-image-2.6.24-23-generic linux-image-2.6.24-24-generic 2.6.24-24.61
> linux-image-2.6.24-25-generic linux-image-2.6.24-26-generic 2.6.24-26.64
> linux-image-2.6.24-27-generic; sudo apt-get --purge autoremove; df -h |
> head -n 2 >> ~/space12345.txt; clear; cat ~/space12345; rm ~/space12345
>
> This will remove the excess kernels. I also included a cheeky bit in the
> command to show the space before and after
>

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#20

A) Be sure to use your browser to manage your question from so click with your browser your question link:

https://answers.launchpad.net/ubuntu/+question/119727

B) The actionparsnip is a good command but may result into a splitted command, so please copy and paste this commands, one row a time then press enter:

sudo apt-get purge linux-{image,headers}-2.6.20-16-generic linux-headers-2.6.20-16

sudo apt-get purge linux-{image,headers}-2.6.22-14-generic linux-headers-2.6.22-14

sudo apt-get purge linux-{image,headers}-2.6.24-{16,17,18,19,21,22,23,24}-generic

sudo apt-get purge linux-headers-2.6.24-{16,17,18,19,21,22,23,24}

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#21

Then please check the installed kernels with this command:

dpkg -l | grep -i linux-image

and report result here...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

nice use of braces dude :)

Revision history for this message
Wayne H. (sailmates) said :
#23

On Wed, 2010-08-25 at 20:53 +0000, marcobra (Marco Braida) wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> marcobra (Marco Braida) posted a new comment:
> Then please check the installed kernels with this command:
>
> dpkg -l | grep -i linux-image
>
> and report result here...sailmates@computer-desktop:~$ dpkg -l | grep -i linux-image
rc linux-image-2.6.20-15-generic 2.6.20-15.27
Linux kernel image for version 2.6.20 on x86
ii linux-image-2.6.20-16-generic 2.6.20-16.32
Linux kernel image for version 2.6.20 on x86
ii linux-image-2.6.22-14-generic 2.6.22-14.52
Linux kernel image for version 2.6.22 on x86
ii linux-image-2.6.24-16-generic 2.6.24-16.30
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-17-generic 2.6.24-17.31
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-18-generic 2.6.24-18.32
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-19-generic 2.6.24-19.41
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-21-generic 2.6.24-21.43
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-22-generic 2.6.24-22.45
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-23-generic 2.6.24-23.52
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-24-generic 2.6.24-24.61
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-25-generic 2.6.24-25.63
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-26-generic 2.6.24-26.64
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-27-generic 2.6.24-27.69
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-28-generic 2.6.24-28.75
Linux kernel image for version 2.6.24 on x86
ii linux-image-generic 2.6.24.28.30
Generic Linux kernel image
sailmates@computer-desktop:~$

Thanks for the help.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#24

Ok run these commands individually:

sudo apt-get --purge remove -y linux-image-2.6.20-*
sudo apt-get --purge remove -y linux-image-2.6.22-*
sudo apt-get --purge remove -y linux-image-2.6.24-16-generic
sudo apt-get --purge remove -y linux-image-2.6.24-17-generic
sudo apt-get --purge remove -y linux-image-2.6.24-18-generic
sudo apt-get --purge remove -y linux-image-2.6.24-19-generic
sudo apt-get --purge remove -y linux-image-2.6.24-21-generic
sudo apt-get --purge remove -y linux-image-2.6.24-22-generic
sudo apt-get --purge remove -y linux-image-2.6.24-23-generic
sudo apt-get --purge remove -y linux-image-2.6.24-24-generic
sudo apt-get --purge remove -y linux-image-2.6.24-25-generic
sudo apt-get --purge remove -y linux-image-2.6.24-26-generic

Stupid browsers wrapping stuff and breaking stuff. I'mm guessing your browser is crappy firefox.

Revision history for this message
Wayne H. (sailmates) said :
#25

Marco,

When I copied and pasted the top and bottom commands they seemed to
work. I picked up .6 gb. I still in home etc. have 1.3 gb accounted for
by my disk usage analyzer. Therefore I still have about 4.5 gb tied up
in programs. Is ubuntu linux this big?

I copied and pasted the results for the middle two commands below.

Thanks,

On Wed, 2010-08-25 at 20:50 +0000, marcobra (Marco Braida) wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> marcobra (Marco Braida) posted a new comment:
> A) Be sure to use your browser to manage your question from so click
> with your browser your question link:
>
> https://answers.launchpad.net/ubuntu/+question/119727
>
>
> B) The actionparsnip is a good command but may result into a splitted command, so please copy and paste this commands, one row a time then press enter:
>
> sudo apt-get purge linux-{image,headers}-2.6.20-16-generic linux-
> headers-2.6.20-16

When I copied and pasted the below in terminal it came back with the
following.sailmates@computer-desktop:~$ sudo apt-get purge
linux-{image,headers}-2.6.22-14-generic linux-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-2.6.22-14-generic is not installed, so not removed
Package linux is not installed, so not removed
The following packages were automatically installed and are no longer
required:
  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-2.6.22-14-generic*
linux-restricted-modules-2.6.22-14-generic*
  linux-ubuntu-modules-2.6.22-14-generic*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 117MB disk space will be freed.
Do you want to continue [Y/n]? Y
Abort.
sailmates@computer-desktop:~$

> sudo apt-get purge linux-{image,headers}-2.6.22-14-generic linux-
> headers-2.6.22-14
>
> sudo apt-get purge
> linux-{image,headers}-2.6.24-{16,17,18,19,21,22,23,24}-generic

sailmates@computer-desktop:~$ sudo apt-get purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libnss3-dev libnspr4-dev xulrunner-1.9-gnome-support
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sailmates@computer-desktop:~$
linux-{image,headers}-2.6.24-{16,17,18,19,21,22,23,24}-generic
bash: linux-image-2.6.24-16-generic: command not
>
> sudo apt-get purge linux-headers-2.6.24-{16,17,18,19,21,22,23,24}
>
> Hope this helps
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#26

4.5Gb sounds kinda right depends what apps you have etc.

Revision history for this message
Wayne H. (sailmates) said :
#27

This worked. I'm now down to 4.5gb used of a 10gb hard drive. But, my
disc analyzer only accounts for 1.3 gb for Mozilla, Evolution etc.
which says the ubuntu is 3.2 gb or is there other stuff that has been
superceeded but is still on the computer?

I noticed that 2.6.24-20-generic is missing from the command list. Is
this an oversight?

As you can see, I'm relatively (or very) computer ignorant. I suggest
that for people like me that updates purge old versions, perhaps keeping
the one or two most recent so their computers don't overflow with
obsolete programs. I can see the wisdom in keeping previous versions
but they are of no use to people like me. I wouldn't know how to revert
to an earlier version. As Ubuntu keeps becoming more main stream, the
proportion of computer jocks will become smaller and people like me that
use it as a tool for my own needs will become dominant. The question is
Ubuntu trying to produce the best program for the art of it or for it
usefulness for the world at large.

Yes, my browser is crappy Firefox (but it works for me) and mail is
Evolution. Both of which where received via the Ubuntu installation and
updated through the Ubuntu update system.

Thanks again. I have most of my computer back.

On Thu, 2010-08-26 at 01:57 +0000, actionparsnip wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> actionparsnip posted a new comment:
> Ok run these commands individually:
>
>
> sudo apt-get --purge remove -y linux-image-2.6.20-*
> sudo apt-get --purge remove -y linux-image-2.6.22-*
> sudo apt-get --purge remove -y linux-image-2.6.24-16-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-17-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-18-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-19-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-21-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-22-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-23-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-24-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-25-generic
> sudo apt-get --purge remove -y linux-image-2.6.24-26-generic
>
>
> Stupid browsers wrapping stuff and breaking stuff. I'mm guessing your browser is crappy firefox.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#28

it just keeps a backup kernel

if you run:

dpkg -l | grep linux-image-2

You should now have 2 kernels

I suggest you run bleachbit as both user and root (both are in the applications menu). Make sure you CLOSE as many apps as possible so that temporary fluff can be removed. You probably have a tonne of attatchments in your emails too which are bloating your partition.

Revision history for this message
Wayne H. (sailmates) said :
#29

I think I have more than two. Here are the results.

sailmates@computer-desktop:~$ dpkg -l | grep linux-image-2
rc linux-image-2.6.20-15-generic 2.6.20-15.27
Linux kernel image for version 2.6.20 on x86
ii linux-image-2.6.24-27-generic 2.6.24-27.69
Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-28-generic 2.6.24-28.75
Linux kernel image for version 2.6.24 on x86
sailmates@computer-desktop:~$

On Thu, 2010-08-26 at 03:27 +0000, actionparsnip wrote:
> dpkg -l | grep linux-image-2

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#30

linux-image-2.6.20-15-generic is only present in config. This is residual and can be removed with:

sudo dpkg -P linux-image-2.6.20-15-generic

This won't get you much space back at all but just cleans up the place

Revision history for this message
Wayne H. (sailmates) said :
#31

On Thu, 2010-08-26 at 03:27 +0000, actionparsnip wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> actionparsnip posted a new comment:
> it just keeps a backup kernel
>
> if you run:
>
> dpkg -l | grep linux-image-2
>
> You should now have 2 kernels
>
> I suggest you run bleachbit as both user and root (both are in the
> applications menu). Make sure you CLOSE as many apps as possible so that
> temporary fluff can be removed. You probably have a tonne of
> attatchments in your emails too which are bloating your partition.

I could not find bleachbit in the applications menu. Can you be more
specific?

Thanks,
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#32

run:

sudo apt-get install bleachbit

Then click applications in the top left and move the mouse slowly down each item, you will find it.

Revision history for this message
Wayne H. (sailmates) said :
#33

I don't think it's on my computer.

On Thu, 2010-08-26 at 03:55 +0000, actionparsnip wrote:
> sudo apt-get install bleachbit

I ran the above and this is what I got

.sailmates@computer-desktop:~$ sudo apt-get install bleachbit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package bleachbit
sailmates@computer-desktop:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#34

andy@D420:~$ apt-cache policy bleachbit
bleachbit:
  Installed: (none)
  Candidate: 0.7.3-1
  Version table:
     0.7.3-1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Packages

Make sure you have universe repos enabled.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#35

Please first enable the universe repository:

Open System → Administration → Software sources → [ Tab Ubuntu software ]
enable "Community Maintained open source software (universe)"
Close and confirm the repository reload.

Here some repositories details: https://help.ubuntu.com/community/Repositories/Ubuntu

Then open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo aptitude update
sudo apt-get dist-upgrade
sudo aptitude install bleachbit

give your user password when requested, you don't see nothing when you type it, then press enter.

Revision history for this message
Wayne H. (sailmates) said :
#36

Marco,

I followed you instructions. Everything worked except sudo aptitude
beleachbit. Here is what I got. I tried it twice. (I did restart the
computer after sudo apt-get dist-upgrade.)

sailmates@computer-desktop:~$ sudo aptitude install bleachbit
[sudo] password for sailmates:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Couldn't find any package whose name or description matched "bleachbit"
Couldn't find any package whose name or description matched "bleachbit"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
sailmates@computer-desktop:~$ sudo aptitude install bleachbit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Couldn't find any package whose name or description matched "bleachbit"
Couldn't find any package whose name or description matched "bleachbit"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
sailmates@computer-desktop:~$

Thanks

On Sat, 2010-08-28 at 06:03 +0000, marcobra (Marco Braida) wrote:
> sudo aptitude install bleachbit

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#37

Can you give the output of:

lsb_release -a

You could try:

sudo add-apt-repository ppa:medigeek/ppa; sudo apt-get update; sudo apt-get install bleachbit

Revision history for this message
Wayne H. (sailmates) said :
#38

Here is the output requested. Thanks,

sailmates@computer-desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.4 LTS
Release: 8.04
Codename: hardy
sailmates@computer-desktop:~$
On Sat, 2010-08-28 at 16:33 +0000, actionparsnip wrote:
> Your question #119727 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/119727
>
> actionparsnip posted a new comment:
> Can you give the output of:
>
> lsb_release -a
>
> You could try:
>
> sudo add-apt-repository ppa:medigeek/ppa; sudo apt-get update; sudo apt-
> get install bleachbit
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#39

Thought so. Try thihs:

http://bleachbit.sourceforge.net/download/linux

It has a deb for Hardy

Revision history for this message
Wayne H. (sailmates) said :
#40

I found and downloaded bleachbit. I ran it and cleared out 25 mb or so. Thanks, I now have about 4.3 gb of disk available which will hold me for now.

Thank. This problem is answered.