10.10 kernel update breaks

Bug #664709 reported by futurefx on 2010-10-21
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Customization Kit
Undecided
Unassigned

Bug Description

I can update everything in 10.10 but if i try to update kernel then synaptic shows: E: linux-image-2.6.35-22-generic: subprocess installed post-installation script returned error exit status 2

UCK log is useless currently because it wont indicate anything.

Wolf Geldmacher (wolf-womaro) wrote :

For reference, here's what you get when you run the kernel upgrade in a terminal started from UCK:

> ...
> Setting up linux-image-2.6.35-22-generic (2.6.35-22.35) ...
> Running depmod.
> update-initramfs: Generating /boot/initrd.img-2.6.35-22-generic
> df: Warning: cannot read table of mounted file systems: No such file or directory
> cryptsetup: WARNING: could not determine root device from /etc/fstab
> Not updating initrd symbolic links since we are being updated/reinstalled
> (2.6.35-22.33 was configured last, according to dpkg)
> Not updating image symbolic links since we are being updated/reinstalled
> (2.6.35-22.33 was configured last, according to dpkg)
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
> run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
> run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
> run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
> run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
> /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
> run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
> Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-22-generic.postinst line 1010.
> dpkg: error processing linux-image-2.6.35-22-generic (--configure):
> subprocess installed post-installation script returned error exit status 2
> Errors were encountered while processing:
> linux-image-2.6.35-22-generic
> E: Sub-process /usr/bin/dpkg returned an error code (1)

So essentially what's happening is that the update-grub command is aborting because it cannot determine the root file system.

As a workaround you can (temporarily) move the /etc/kernel/postinst.d/zz-update-grub procedure someplace else while updating the kernel from a terminal started from UCK (don't forget to restore it afterwards!) - this will make the kernel upgrade succeed (and on the live system grub is not used anyway - so configuring it doesn't really make sense in UCK).

I've no idea yet how to fix the issue permanently, though...

futurefx (force) wrote :

Still failure, it is impossible to update kernel. Why it worked on Lucid?

Looks like my 10.10 custom iso is doomed because UCK only is best that creates 100% accurate iso, i have tested others like reconstructor but those only creates mess. Is there ever hope to edit 10.10 correctly?.

OffTopic but sad that Ubuntu do not release updated iso files for releases monthly at least then i could just edit iso without upgrading.

Changed in uck:
status: New → Fix Committed
futurefx (force) wrote :

? where, you mean 2.3.4? i have all UCK builds stopped because of bug.

it's on svn

futurefx (force) wrote :

too bad i do not have skills to make deb so i just wait 2.3.4 deb, but thanks a lot for fixing this horrible bug.

fix released with 2.4.0

Changed in uck:
status: Fix Committed → Fix Released
stask (stask85) wrote :

I still have the problem updating the kernel with UCK 2.4.3 & Ubuntu 10.10 incl. all updates...

 Errors were encountered while processing:
 linux-image-2.6.35-22-generic
 linux-image-2.6.35-27-generic
 linux-image-2.6.35-28-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ikem (ikem-krueger) wrote :

It's not neccessary to move "/etc/kernel/postinst.d/zz-update-grub".

It's sufficient to "chmod -x" them.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions