PDA

View Full Version : [ubuntu] 8.10 to 9.04 upgrade fails (kernel). Breaks dpkg (apt, aptitude, udpate-manager)



chrono13
April 30th, 2009, 08:04 PM
During the upgrade process, it mentioned an error upgrading the kernel.

Thankfully the system finished upgrading (mostly) and is still stable, but I have a major problem.

Update Manager produces this:


E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.


The same error with apt-get and aptitude.

Running what it suggests:

sudo dpkg --configure -a
Setting up initramfs-tools (0.92bubuntu29) ...
update-initramfs: deferring update (trigger activated)

Setting up linux-image-2.6.28-11-generic (2.6.28-11.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic
cpio: ./bin/udevinfo: Cannot stat: No such file or directory
update-initramfs: failed for /boot/initrd.img-2.6.28-11-generic
Failed to create initrd image.
dpkg: error processing linux-image-2.6.28-11-generic (--configure):
subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-2.6.28-11-generic; however:
Package linux-image-2.6.28-11-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.28.11.15); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.28-11-generic:
linux-restricted-modules-2.6.28-11-generic depends on linux-image-2.6.28-11-generic; however:
Package linux-image-2.6.28-11-generic is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.28-11-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-generic:
linux-restricted-modules-generic depends on linux-restricted-modules-2.6.28-11-generic; however:
Package linux-restricted-modules-2.6.28-11-generic is not configured yet.
dpkg: error processing linux-restricted-modules-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.27-14-generic
cpio: ./bin/udevinfo: Cannot stat: No such file or directory
update-initramfs: failed for /boot/initrd.img-2.6.27-14-generic
dpkg: subprocess post-installation script returned error exit status 1


I am stuck with fully broken package management at 2.6.27-14-generic, the update it is failing on is 2.6.28-11-generic.

Some bug reports mentioned packagekit, but I don't think I have it installed:

sudo aptitude search packagekit
[sudo] password for devnull:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
p gstreamer0.10-packagekit - GStreamer plugin to install codecs using PackageKit
p kpackagekit - KDE package management tool using PackageKit
p libpackagekit-glib-dev - Library for accessing PackageKit using GLib (development files)
p libpackagekit-glib11 - Library for accessing PackageKit using GLib
p libpackagekit-qt-dev - Library for accessing PackageKit using QT (development files)
p libpackagekit-qt11 - Library for accessing PackageKit using QT.
p libpackagekit-qt2 - Qt library for PackageKit
p mozilla-packagekit - software installation plugin
p packagekit - provides a software installation daemon
p packagekit-backend-apt - APT backend for packagekit
p packagekit-backend-smart - Smart backend for packagekit
p packagekit-backend-yum - Yum backend for packagekit
p packagekit-gnome - graphical distribution neutral software management tools
p python-packagekit - PackageKit Python bindings
p python-packagekit-gtk - Python GTK widgets for PackageKit clients



Help.

chrono13
May 1st, 2009, 01:38 AM
In the recovery menu I tried fdisk and this did not clear the issue. I also tried 'fix broken packages' which of course results in the same error.

I dropped into netroot and tried the dpkg --configure -a, same error.

If someone could confirm that I am just up Ubuntu Creek without a paddle, I'll back up etc and begin the reinstall.

So frustrating.

ranezu
May 2nd, 2009, 03:55 PM
I'm having the same problem. No ideas how to fix it, except for reinstalling...

subbuss
May 6th, 2009, 10:39 PM
Edit the file /usr/share/initramfs-tools/hooks/live and change the line that says "copy_exec /usr/bin/udevinfo" to "copy_exec /sbin/udevadm" and it will work.

I found this via some other bug report on another site.

traverses
May 19th, 2009, 04:07 PM
I have same problem. but there is no 'live' file in the hooks dir

theOtherMarino
May 21st, 2009, 02:17 PM
Hello,

Having the same problem, as discussed in thread http://ubuntuforums.org/showthread.php?t=1147434&page=2

The same solution with the initramfs-tools is mentionned, but nope... On my sytem, there is no "/usr/share/initramfs-tools/hooks/live" file. There is a "/usr/share/initramfs-tools/hooks/udev" file, ans it containes the right line to copy_exec ... udevadm

Any help appreciated.

Marino