linux-image-2.6.27-9-generic failed to install/upgrade : run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 10

Bug #303825 reported by linke.wang
220
This bug affects 20 people
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
Fix Released
High
Alberto Milone
Intrepid
Fix Released
Undecided
Unassigned
Jaunty
Fix Released
High
Alberto Milone

Bug Description

Binary package hint: linux-image-2.6.27-9-generic

I'm using Ubuntu 8.10.
i install new kernel, and i get this error:
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
10 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up linux-image-2.6.27-9-generic (2.6.27-9.19) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.27-9-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.27-9.19 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.27-9.19 was configured last, according to dpkg)
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 ... found: /grub/splashimages/menu-sta.xpm.gz

Found kernel: /vmlinuz-2.6.27-9-generic
Found kernel: /vmlinuz-2.6.27-7-generic
Found kernel: /vmlinuz-2.6.24-22-generic
Updating /boot/grub/menu.lst ... done

Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.27-9-generic
 * kqemu (1.3.0~pre11)... kqemu (1.3.0~pre11): Already installed on this kernel.
                                                                         [ OK ]
 * vboxdrv (2.0.4)... vboxdrv (2.0.4): Already installed on this kernel.
                                                                         [ OK ]
run-parts: executing /etc/kernel/postinst.d/nvidia-common
run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.27-9-generic.postinst line 1002.
dpkg: error processing linux-image-2.6.27-9-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.27-9-generic; however:
  Package linux-image-2.6.27-9-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image:
 linux-image depends on linux-image-generic (= 2.6.27.9.13); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-image (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.27-9-generic:
 linux-No apport report written because the error message indicates its a followup error from a previous failure.
                                 No apport report written because the error message indicates its a followup error from a previous failure.
                                                           No apport report written because MaxReports is reached already
                                         No apport report written because MaxReports is reached already
                       No apport report written because MaxReports is reached already
     No apport report written because MaxReports is reached already
                                                                   No apport report written because MaxReports is reached already
                                                 restricted-modules-2.6.27-9-generic depends on linux-image-2.6.27-9-generic; however:
  Package linux-image-2.6.27-9-generic is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.27-9-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.27-9-generic; however:
  Package linux-restricted-modules-2.6.27-9-generic is not configured yet.
dpkg: error processing linux-restricted-modules-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules:
 linux-restricted-modules depends on linux-restricted-modules-generic (= 2.6.27.9.13); however:
  Package linux-restricted-modules-generic is not configured yet.
dpkg: error processing linux-restricted-modules (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux:
 linux depends on linux-image (= 2.6.27.9.13); however:
  Package linux-image is not configured yet.
 linux depends on linux-restricted-modules (= 2.6.27.9.13); however:
  Package linux-restricted-modules is not configured yet.
dpkg: error processing linux (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.27.9.13); however:
  Package linux-image-generic is not configured yet.
 linux-generic depends on linux-restricted-modules-generic (= 2.6.27.9.13); however:
  Package linux-restricted-modules-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-headers-2.6.27-9-generic (2.6.27-9.19) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.27-9-generic
 * kqemu (1.3.0~pre11)... kqemu (1.3.0~pre11): Already installed on this kernel.
                                                                         [ OK ]
 * vboxdrv (2.0.4)... vboxdrv (2.0.4): Already installed on this kernel.
                                                                         [ OK ]
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.27-9-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.27-9-generic (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-2.6.27-9-generic; however:
  Package linux-headers-2.6.27-9-generic is not configured yet.
dpkg: error processing linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                            Errors were encountered while processing:
 linux-image-2.6.27-9-generic
 linux-image-generic
 linux-image
 linux-restricted-modules-2.6.27-9-generic
 linux-restricted-modules-generic
 linux-restricted-modules
 linux
 linux-generic
 linux-headers-2.6.27-9-generic
 linux-headers-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 2
LsUsb:
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 002: ID 050d:705a Belkin Components F5D7050A Wireless Adapter
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Package: linux-headers-2.6.27-9-generic 2.6.27-9.19
ProcCmdLine: User Name=UUID=a825a3fb-e3fd-480f-bb00-428c93924386 ro quiet splash
ProcVersionSignature: Ubuntu 2.6.27-7.16-generic
SourcePackage: linux
Title: package linux-headers-2.6.27-9-generic 2.6.27-9.19 failed to install/upgrade: subprocess post-installation script returned error exit status 2

Revision history for this message
linke.wang (linke-wang) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

The interesting part here is:
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.27-9-generic.postinst line 110.

affecting to nvidia-common

The same bug has been seen in bug 276946 but it's mark "Fix released"

Revision history for this message
Jarrod Moore (masternayru) wrote :

I had the same problem as well. I fixed it by reinstalling nvidia-common.

Revision history for this message
linke.wang (linke-wang) wrote :

Thanks.
I fixed it by removing nvidia-common.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for following up. I'm closing this report due to your last comment. Don't hesitate to submit any new bug.

Changed in nvidia-common:
status: New → Fix Released
Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

I think this bug still exists. I observed a failure with similar symptoms for kernel 2.6.28-11.36, which can be worked around by uninstalling nvidia-common, doing the kernel upgrade, then reinstalling nvidia-common. However, this workaround is only useful for expert users. The consequences of the bug are very high - initramfs fails to be regenerated and the system can be rendered unbootable (that happened to me).

Raising the importance to critical. I think nvidia-common is a weak link at the moment. Since it is installed for everyone, a weakness affects everyone even if they don't have the old drivers it is setup to detect and address.

Changed in nvidia-common (Ubuntu):
importance: Undecided → High
status: Fix Released → Confirmed
Changed in nvidia-common (Ubuntu):
assignee: nobody → albertomilone
Changed in nvidia-common (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Alberto Milone (albertomilone) wrote :

Thanks for reopening a bug. I managed to reproduce the bug by setting the path of the modaliases to a non valid value (so as to simulate the case in which the modaliases are not found in the system) and I fixed the problem by avoiding to raise an error when such path points to a directory that doesn't exist.

Here's the debdiff with the fix for Intrepid.

Revision history for this message
Alberto Milone (albertomilone) wrote :

Here's the same fix (with some changes due to the changes in Python) for Jaunty.

Revision history for this message
Alberto Milone (albertomilone) wrote :

SRU request for Intrepid:
Test case: nvidiadetector.py raises an exception when the modaliases are not installed thus causing this bug.
Changes:
  * NvidiaDetector/nvidiadetector.py:
    - Exit without an error exit status in NvidiaDetection.__init__()
      so as not to break dist-upgrades if the modaliases are not
      installed.

Please accept 0.2.4.2 in Intrepid-proposed.

Revision history for this message
Martin Pitt (pitti) wrote :

Straightforward patch, ack'ed for intrepid and jaunty. I'll sponsor both.

However, Steve might choose to reject the jaunty upload for final, and ask this to become a jaunty SRU as well.

Changed in nvidia-common (Ubuntu Jaunty):
status: In Progress → Fix Committed
Changed in nvidia-common (Ubuntu Intrepid):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into intrepid-proposed; please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-common - 0.2.10

---------------
nvidia-common (0.2.10) jaunty; urgency=low

  * NvidiaDetector/nvidiadetector.py:
    - Exit without an error exit status in NvidiaDetection.__init__()
      so as not to break dist-upgrades if the modaliases are not
      installed (LP: #303825).
  * debian/rules:
    - Add "--install-layout=deb" to make sure that nvidia-detector
      is installed in /usr/bin/ instead of /usr/local/bin.

 -- Alberto Milone <email address hidden> Tue, 14 Apr 2009 15:54:28 +0200

Changed in nvidia-common (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Komet (ewg118) wrote :

I also fixed this by installing/reinstalling nvidia-common. Why is this package necessary? I have an ATI card.

Revision history for this message
Martin Pitt (pitti) wrote :

Anyone who is affected by this who can test the updated nivida-common package in intrepid-updates?

Revision history for this message
Alberto Milone (albertomilone) wrote :

I installed the package in intrepid-proposes and, as you can see in the attached file, I removed /usr/share/jockey/modaliases so that nvidia-common couldn't find it, then I ran nvidia-detector and the exit code is 0.

I can confirm that the problem is solved with the package in -proposed.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-common - 0.2.4.2

---------------
nvidia-common (0.2.4.2) intrepid-proposed; urgency=low

  * NvidiaDetector/nvidiadetector.py:
    - Exit without an error exit status in NvidiaDetection.__init__()
      so as not to break dist-upgrades if the modaliases are not
      installed (LP: #303825).

 -- Alberto Milone <email address hidden> Tue, 14 Apr 2009 16:05:21 +0200

Changed in nvidia-common (Ubuntu Intrepid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.