PDA

View Full Version : [ubuntu] 2.5.24-21 kernel image failed, clean up now.



Timtro
October 17th, 2008, 09:14 PM
Hi All,

Thanks in advance.

I run fluxbox, so I don't get an update notification. I noticed today when I added a package that I had some upgrades, so I took them. I got some error messages relating to a kernel upgrade and dpkg failed.

I think the problem is that I keep my /boot on its own partition that is only a few Mb (an old habit from by Gentoo days). I when dpkg tried to create the new kernel image, gzip didn't have enough space. I'm including the output from synaptic at the end.

My question is: what can I do to clean things up now? Can I simply uncheck "Linux kernel image for version 2.6.24 on x86/x86_64" and the modules package from Synaptic? Can I remove one of the older kernels and reselect?

Furthermore, is there any benefit to having /boot mounted on its own ext2 partition any more? If I recall properly, that was the motivation for having /boot separate: the kernel likes living on an ext2 fs, while I use ext3 for / and /home.

I apologize if I have neglected to include any relevant info.

Thanks again.

Best,


Tim.



Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.24-21-generic.
(Reading database ... 237226 files and directories currently installed.)
Unpacking linux-image-2.6.24-21-generic (from .../linux-image-2.6.24-21-generic_2.6.24-21.42_amd64.deb) ...
Done.
Selecting previously deselected package linux-ubuntu-modules-2.6.24-21-generic.
Unpacking linux-ubuntu-modules-2.6.24-21-generic (from .../linux-ubuntu-modules-2.6.24-21-generic_2.6.24-21.32_amd64.deb) ...
Preparing to replace cupsys-common 1.3.7-1ubuntu3 (using .../cupsys-common_1.3.7-1ubuntu3.1_all.deb) ...
Unpacking replacement cupsys-common ...
Preparing to replace libcupsys2 1.3.7-1ubuntu3 (using .../libcupsys2_1.3.7-1ubuntu3.1_amd64.deb) ...
Unpacking replacement libcupsys2 ...
Preparing to replace libcupsimage2 1.3.7-1ubuntu3 (using .../libcupsimage2_1.3.7-1ubuntu3.1_amd64.deb) ...
Unpacking replacement libcupsimage2 ...
Preparing to replace cupsys 1.3.7-1ubuntu3 (using .../cupsys_1.3.7-1ubuntu3.1_amd64.deb) ...
Ignoring nonregistered document `cupsys'
* Stopping Common Unix Printing System: cupsd
...done.
Unpacking replacement cupsys ...
Preparing to replace cupsys-bsd 1.3.7-1ubuntu3 (using .../cupsys-bsd_1.3.7-1ubuntu3.1_amd64.deb) ...
Unpacking replacement cupsys-bsd ...
Preparing to replace cupsys-client 1.3.7-1ubuntu3 (using .../cupsys-client_1.3.7-1ubuntu3.1_amd64.deb) ...
Unpacking replacement cupsys-client ...
Preparing to replace jockey-gtk 0.3.3-0ubuntu8 (using .../jockey-gtk_0.3.3-0ubuntu8.1_all.deb) ...
Unpacking replacement jockey-gtk ...
Preparing to replace jockey-common 0.3.3-0ubuntu8 (using .../jockey-common_0.3.3-0ubuntu8.1_all.deb) ...
Unpacking replacement jockey-common ...
Preparing to replace kdelibs4c2a 4:3.5.9-0ubuntu7.1 (using .../kdelibs4c2a_4%3a3.5.10-0ubuntu1~hardy1_amd64.deb) ...
Unpacking replacement kdelibs4c2a ...
Preparing to replace kdelibs-data 4:3.5.9-0ubuntu7.1 (using .../kdelibs-data_4%3a3.5.10-0ubuntu1~hardy1_all.deb) ...
Unpacking replacement kdelibs-data ...
Preparing to replace libartsc0 1.5.9-0ubuntu2 (using .../libartsc0_1.5.10-0ubuntu1~hardy1_amd64.deb) ...
Unpacking replacement libartsc0 ...
Preparing to replace libarts1c2a 1.5.9-0ubuntu2 (using .../libarts1c2a_1.5.10-0ubuntu1~hardy1_amd64.deb) ...
Unpacking replacement libarts1c2a ...
Preparing to replace kdebase-bin-kde3 4:3.5.9-0ubuntu7.3 (using .../kdebase-bin-kde3_4%3a3.5.10-0ubuntu1~hardy2_amd64.deb) ...
Unpacking replacement kdebase-bin-kde3 ...
Preparing to replace kdebase-bin 4:3.5.9-0ubuntu7.3 (using .../kdebase-bin_4%3a3.5.10-0ubuntu1~hardy2_amd64.deb) ...
Unpacking replacement kdebase-bin ...
Preparing to replace konsole 4:3.5.9-0ubuntu7.3 (using .../konsole_4%3a3.5.10-0ubuntu1~hardy2_amd64.deb) ...
Unpacking replacement konsole ...
Preparing to replace linux-generic 2.6.24.19.21 (using .../linux-generic_2.6.24.21.23_amd64.deb) ...
Unpacking replacement linux-generic ...
Preparing to replace linux-image-generic 2.6.24.19.21 (using .../linux-image-generic_2.6.24.21.23_amd64.deb) ...
Unpacking replacement linux-image-generic ...
Preparing to replace linux-restricted-modules-common 2.6.24.13-19.45 (using .../linux-restricted-modules-common_2.6.24.14-21.51_all.deb) ...
Unpacking replacement linux-restricted-modules-common ...
Selecting previously deselected package linux-restricted-modules-2.6.24-21-generic.
Unpacking linux-restricted-modules-2.6.24-21-generic (from .../linux-restricted-modules-2.6.24-21-generic_2.6.24.14-21.51_amd64.deb) ...
Preparing to replace linux-restricted-modules-generic 2.6.24.19.21 (using .../linux-restricted-modules-generic_2.6.24.21.23_amd64.deb) ...
Unpacking replacement linux-restricted-modules-generic ...
Selecting previously deselected package linux-headers-2.6.24-21.
Unpacking linux-headers-2.6.24-21 (from .../linux-headers-2.6.24-21_2.6.24-21.42_all.deb) ...
Selecting previously deselected package linux-headers-2.6.24-21-generic.
Unpacking linux-headers-2.6.24-21-generic (from .../linux-headers-2.6.24-21-generic_2.6.24-21.42_amd64.deb) ...
Preparing to replace linux-headers-generic 2.6.24.19.21 (using .../linux-headers-generic_2.6.24.21.23_amd64.deb) ...
Unpacking replacement linux-headers-generic ...
Preparing to replace linux-libc-dev 2.6.24-19.41 (using .../linux-libc-dev_2.6.24-21.42_amd64.deb) ...
Unpacking replacement linux-libc-dev ...
Preparing to replace nvidia-glx-new 169.12+2.6.24.13-19.45 (using .../nvidia-glx-new_169.12+2.6.24.14-21.51_amd64.deb) ...
Unpacking replacement nvidia-glx-new ...
Setting up linux-image-2.6.24-21-generic (2.6.24-21.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-21-generic
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.24-21-generic
Found kernel: /vmlinuz-2.6.24-19-generic
Found kernel: /vmlinuz-2.6.24-16-generic
Found kernel: /memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done


Setting up linux-ubuntu-modules-2.6.24-21-generic (2.6.24-21.32) ...
update-initramfs: Generating /boot/initrd.img-2.6.24-21-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.24-21-generic
dpkg: error processing linux-ubuntu-modules-2.6.24-21-generic (--configure):
subprocess post-installation script returned error exit status 1
Setting up cupsys-common (1.3.7-1ubuntu3.1) ...
Setting up libcupsys2 (1.3.7-1ubuntu3.1) ...

Setting up libcupsimage2 (1.3.7-1ubuntu3.1) ...

Setting up cupsys (1.3.7-1ubuntu3.1) ...
Reloading AppArmor profiles : done.
* Starting Common Unix Printing System: cupsd
...done.

Setting up cupsys-client (1.3.7-1ubuntu3.1) ...

Setting up cupsys-bsd (1.3.7-1ubuntu3.1) ...

Setting up jockey-common (0.3.3-0ubuntu8.1) ...

Setting up jockey-gtk (0.3.3-0ubuntu8.1) ...
Setting up kdelibs-data (4:3.5.10-0ubuntu1~hardy1) ...

Setting up libartsc0 (1.5.10-0ubuntu1~hardy1) ...

Setting up libarts1c2a (1.5.10-0ubuntu1~hardy1) ...

Setting up kdelibs4c2a (4:3.5.10-0ubuntu1~hardy1) ...

Setting up kdebase-bin-kde3 (4:3.5.10-0ubuntu1~hardy2) ...
Setting up kdebase-bin (4:3.5.10-0ubuntu1~hardy2) ...

Setting up konsole (4:3.5.10-0ubuntu1~hardy2) ...

dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-ubuntu-modules-2.6.24-21-generic; however:
Package linux-ubuntu-modules-2.6.24-21-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-restricted-modules-common (2.6.24.14-21.51) ...

Setting up linux-restricted-modules-2.6.24-21-generic (2.6.24.14-21.51) ...

Setting up linux-restricted-modules-generic (2.6.24.21.23) ...
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 2.6.24.21.23); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-headers-2.6.24-21 (2.6.24-21.42) ...
Setting up linux-headers-2.6.24-21-generic (2.6.24-21.42) ...

Setting up linux-headers-generic (2.6.24.21.23) ...
Setting up linux-libc-dev (2.6.24-21.42) ...
Setting up nvidia-glx-new (169.12+2.6.24.14-21.51) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-ubuntu-modules-2.6.24-21-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-ubuntu-modules-2.6.24-21-generic (2.6.24-21.32) ...
update-initramfs: Generating /boot/initrd.img-2.6.24-21-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.24-21-generic
dpkg: error processing linux-ubuntu-modules-2.6.24-21-generic (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-ubuntu-modules-2.6.24-21-generic; however:
Package linux-ubuntu-modules-2.6.24-21-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 2.6.24.21.23); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-ubuntu-modules-2.6.24-21-generic
linux-image-generic
linux-generic

Partyboi2
October 18th, 2008, 11:41 PM
My question is: what can I do to clean things up now? Can I simply uncheck "Linux kernel image for version 2.6.24 on x86/x86_64" and the modules package from Synaptic? Can I remove one of the older kernels and reselect? You should be able to do a search in synaptic for linux-image and remove all the old ones that you know longer want. I recommend keeping one version before the current one.