Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to update I get this message, I'm guessing I'm missing something here?

Filesystem    Type     Size   Used  Avail Use% Mounted on
/dev/sdb6     ext4      43G   7.7G    33G  20% /
none      devtmpfs     1.6G   349k   1.6G   1% /dev
none         tmpfs     1.6G   5.9M   1.6G   1% /dev/shm
none         tmpfs     1.6G   218k   1.6G   1% /var/run
none         tmpfs     1.6G      0   1.6G   0% /var/lock
/dev/sdb2  fuseblk     258G   198G    60G  77% /media/Backup
/dev/sda1  fuseblk     321G   175G   146G  55% /media/Media
/dev/sdb1     ext4      96M    84M   6.7M  93% /boot
/dev/sdb7     ext4     175G    81G    86G  49% /home

Here's the output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 107MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 282211 files and directories currently installed.)
Removing linux-image-2.6.35-22-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.35-22-generic   /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
/etc/default/grub: 23: Syntax error: newline unexpected
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-2.6.35-22-  generic.postrm line 328.
dpkg: error processing linux-image-2.6.35-22-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here's the content of etc/default/grub

share|improve this question
up vote 2 down vote accepted

As the log says

gzip: stdout: No space left on device

you're probably missing space on the root partition. Can you check that or provide the output of df -Th?


As for the dpkg error:

You have a syntax error in the /etc/default/grub file. Either correct it or post it here.


The line 23 in /etc/default/grub shouldn't look like this:


but like this:

share|improve this answer
i checked and still have plenty of space , i added the output to my question – Uri Herrera Mar 2 '11 at 19:57
the line looks like that cause a used a script to fix plymouth, which didn't displayed properly, and the script required me to type the resolution i wanted like that – Uri Herrera Mar 4 '11 at 10:47
So now it's OK? Any other errors? :) – arrange Mar 4 '11 at 15:31
if i change it, plymouth will not work properly – Uri Herrera Mar 4 '11 at 16:52
I'm not sure about the syntax here if you need to specify depth, but it could be 1024x768x24. – arrange Mar 4 '11 at 17:14

You don't have enough room on /boot (Where the kernel is stored) for the operation to continue. You'll need to allocate more space in /boot before you continue. Typically each kernel needs about 17M of space.

You can delete older kernel installs (sometimes using sudo apt-get autoremove) Or by just uninstalling that specific version kernel. It's strongly recommended you keep at least two working kernel versions in case something in your more recent Kernel goes awry.

share|improve this answer
i have older kernels stored there, can i delete those to make room for the newer kernel? – Uri Herrera Mar 2 '11 at 20:09
Just uninstall any old kernels you don't need, keep say the newest and 1-2 older as a backup. – arrange Mar 2 '11 at 20:21
can't seem to remove the oldest kernel i have, it gives me an error – Uri Herrera Mar 2 '11 at 22:19
Can you post the full output of the error message, preferably from the Terminal (sudo apt-get remove linux-image...)? – arrange Mar 2 '11 at 22:21
You might want to remove older linux headers as well, you can find them by running dpkg -l linux-headers-*|grep ii. Just do not delete the last kernel version or linux-{headers,image}-generic. – Lekensteyn Mar 4 '11 at 8:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.