weird bug under initramfs

Asked by César Biosca.

I am using kubuntu 10.04 LTS, after some update of an image initramfs got problems after reading the apparent solution, I typed: sudo dpkg --configure -a

THAT WAS THE OUTPUT:

Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-23-generic
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools

So I typed: sudo apt-get -f install

THAT WAS THE OUTPUT:

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-23-generic
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

I cheched for space problems for the hard disk using gaparted, just for system 32% used = 11.93GiB; 68% unused = 25.34 GiB. (/home is in another partition).

Any idea?

Thanks in advanced!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu initramfs-tools Edit question
Assignee:
No assignee Edit question
Solved by:
César Biosca.
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please open a terminal and type:

sudo fdisk -l

and

mount

dpkg -l | grep -i linux-image

Please copy and paste result here...

HTh

Revision history for this message
César Biosca. (ceaualbi) said :
#2

fdisk result

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30401 244091610 f W95 Ext'd (LBA)
/dev/sda5 5392 30401 200892793+ 83 Linux
/dev/sda6 14 526 4120609+ 82 Linux swap / Solaris
/dev/sda7 527 5391 39078081 83 Linux

dpkg -l | grep -i linux-image result

ii linux-image-2.6.27-17-generic 2.6.27-17.46 Linux kernel image for version 2.6.27 on x86
ii linux-image-2.6.27-7-generic 2.6.27-7.16 Linux kernel image for version 2.6.27 on x86
ii linux-image-2.6.28-18-generic 2.6.28-18.60 Linux kernel image for version 2.6.28 on x86
ii linux-image-2.6.31-20-generic 2.6.31-20.58 Linux kernel image for version 2.6.31 on x86
ii linux-image-2.6.31-21-generic 2.6.31-21.59 Linux kernel image for version 2.6.31 on x86
ii linux-image-2.6.32-22-generic 2.6.32-22.36 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86

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

Please try to remove this old kernel to made space on your partition:

Open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo aptitude purge linux-image-2.6.27-17-generic
sudo aptitude purge linux-image-2.6.27-7-generic
sudo aptitude purge linux-image-2.6.28-18-generic
sudo aptitude purge linux-image-2.6.31-20-generic
sudo aptitude purge linux-image-2.6.31-21-generic

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update

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

Hope this helps

Revision history for this message
César Biosca. (ceaualbi) said :
#4

Just a little question, how does it affect to the partition if 11.93GiB are used and 25.34 GiB are free?

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

Please also be sure your filesystem have no errors in it force a filesystem check open a terminal and type:

sudo shutdown -rF now

to reboot the pc and perform the filesystem check.

Please tell do you have aMule or other p2p software installed...?

Revision history for this message
César Biosca. (ceaualbi) said :
#6

Ok, no bug onboard.

Many thanks!!!