2.6.30-8 kernel related packages fail to install

Bug #384639 reported by William LaFrance on 2009-06-07
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
Undecided
Unassigned

Bug Description

AMD64:

william@inspiration:~$ sudo apt-get install linux-image-2.6.30-8-generic linux-backports-modules-2.6.30-8-generic linux-headers-2.6.30-8-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-2.6.30-8-generic is already the newest version.
linux-backports-modules-2.6.30-8-generic is already the newest version.
linux-headers-2.6.30-8-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.30-8-generic (2.6.30-8.9) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.30-8-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: /boot/vmlinuz-2.6.30-8-generic
Found kernel: /boot/vmlinuz-2.6.28-11-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Examining /etc/kernel/postinst.d.
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.30-8-generic.postinst line 1002.
dpkg: error processing linux-image-2.6.30-8-generic (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-backports-modules-2.6.30-8-generic:
 linux-backports-modules-2.6.30-8-generic depends on linux-image-2.6.30-8-generic; however:
  Package linux-image-2.6.30-8-generic is not configured yet.
dpkg: error processing linux-backports-modules-2.6.30-8-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-headers-2.6.30-8-generic (2.6.30-8.9) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Examining /etc/kernel/header_postinst.d.
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.30-8-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.30-8-generic (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-2.6.30-8-generic
 linux-backports-modules-2.6.30-8-generic
 linux-headers-2.6.30-8-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

run-parts: executing /etc/kernel/header_postinst.d/nvidia-common
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 10

Reassigning to nvidia-common.

affects: linux (Ubuntu) → nvidia-common (Ubuntu)
Alberto Milone (albertomilone) wrote :

Please attach the output of the following commands:

1) apt-cache policy nvidia-common

2) nvidia-detector

William LaFrance (wjlafrance) wrote :

@Alberto Milone:

william@inspiration:~$ apt-cache policy nvidia-common
nvidia-common:
  Installed: 0.2.11
  Candidate: 0.2.11
  Version table:
 *** 0.2.11 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
william@inspiration:~$ nvidia-detector
none

Michael (m-gruys) wrote :

This bug is present since the RC1 of the 2.6.30 kernel (2.6.30-1).

Download full text (3.3 KiB)

I'm also having trouble installing the latest kernel 2.6.30 stable on Ubuntu 9.04. The deb's I tried installing I got from "http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30". Technically the kernel installs fine. It's the nvidia modules it seems to have problems with. All other kernels I've downloaded and installed from that site have worked perfectly with nvidia drivers. It's this latest kernel that is the first to not work.

Here's the output I got in shell.

$ sudo dpkg -i linux*2.6.30*.deb
Selecting previously deselected package linux-headers-2.6.30-020630.
(Reading database ... 173270 files and directories currently installed.)
Unpacking linux-headers-2.6.30-020630 (from linux-headers-2.6.30-020630_2.6.30-020630_all.deb) ...
Selecting previously deselected package linux-headers-2.6.30-020630-generic.
Unpacking linux-headers-2.6.30-020630-generic (from linux-headers-2.6.30-020630-generic_2.6.30-020630_amd64.deb) ...
Selecting previously deselected package linux-image-2.6.30-020630-generic.
Unpacking linux-image-2.6.30-020630-generic (from linux-image-2.6.30-020630-generic_2.6.30-020630_amd64.deb) ...
Done.
Setting up linux-headers-2.6.30-020630 (2.6.30-020630) ...
Setting up linux-headers-2.6.30-020630-generic (2.6.30-020630) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.30-020630-generic
 * nvidia (180.44)... nvidia (180.44): Installing module.
..........(bad exit status: 10)
  Build failed. Installation skipped.
                                                                                                                                       [fail]
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common

Setting up linux-image-2.6.30-020630-generic (2.6.30-020630) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.30-020630-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: /boot/vmlinuz-2.6.30-020630-generic
Found kernel: /boot/vmlinuz-2.6.29-02062904-generic
Found kernel: /boot/vmlinuz-2.6.28-11-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
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.30-020630-generic
 * nvidia (180.44)... nvidia (180.44): Installing module.
..........(bad exit status: 10)
  Build failed. Installation skipped.
                                ...

Read more...

Not sure if this is relevant but here's the results of the mentioned commands from a previous commenter.

$ apt-cache policy nvidia-common
nvidia-common:
  Installed: 0.2.11
  Candidate: 0.2.11
  Version table:
 *** 0.2.11 0
        500 http://us.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
$ nvidia-detector
none

Bhaskar Kandiyal (bkandiyal) wrote :

Yes, I can confirm this bug. I get the same error on a custom build kernel.

Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.30-custom
 * nvidia (180.44)... nvidia (180.44): Installing module.
.........(bad exit status: 10)
  Build failed. Installation skipped.
                                                                                                                                                                          [fail]
run-parts: executing /etc/kernel/postinst.d/nvidia-common

And the same output as Zeroth and William stated previously, when executing 'apt-cache policy nvidia-common' and 'nvidia-detector'

I was able to get the new kernel working after installing newer nvidia drivers. Here's the steps I took to get mine working. You should change the steps below to suit your architecture. If you have a 32 bit system, then you should download the 32 bit packages. Note: I don't really use the wget command (I downloaded the packages through Firefox) so if I used them incorrectly in this tutorial feel free to fix the directions to how you like. I just typed it here for your convenience.

1st) Use apt-get to purge the new kernel. If you don't need to do this you can skip this step. I just wanted to start fresh before installing the nvidia drivers and reinstalling the new kernel. As far as I know you have to install the drivers before the new kernel. I could be wrong about that but I just wanted to make sure before reinstalling the new kernel. Better safe then sorry.

sudo apt-get purge linux-headers-2.6.30-020630 linux-headers-2.6.30-020630-generic linux-image-2.6.30-020630-generic

2nd) Download and install the new nvidia drivers from "http://archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-180/".

wget http://archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-180/nvidia-180-kernel-source_180.60-0ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-180/nvidia-180-libvdpau_180.60-0ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-180/nvidia-glx-180_180.60-0ubuntu1_amd64.deb

sudo dpkg -i nvidia*.deb

3rd) Reinstall the kernel 2.6.30 packages and reboot. If you haven't all ready you should download the pre-compiled packages from "http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30/".

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30/linux-headers-2.6.30-020630-generic_2.6.30-020630_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30/linux-headers-2.6.30-020630_2.6.30-020630_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30/linux-image-2.6.30-020630-generic_2.6.30-020630_amd64.deb

sudo dpkg -i linux*2.6.30*.deb
sudo reboot now

If all goes well, all systems should be a go.

vanchuck (vanchuck) wrote :

Big thanks to Zeroth Eksaz... his very thorough directions worked perfectly for me.

Unfortunately I upgraded to 2.6.30 to fix a USB audio issue but it still hasn't fixed it. Bittersweet victory :)

Same bug for me:

Replacing config file /var/run/grub/menu.lst with new version
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.30-020630-generic
 * nvidia (180.44)... nvidia (180.44): Installing module.
.........(bad exit status: 10)
  Build failed. Installation skipped.
                                                                                  [fail]
run-parts: executing /etc/kernel/postinst.d/nvidia-common

Alberto Milone (albertomilone) wrote :

This bug report is about a bug which seems to be triggered by nvidia-common (even though it might depend on something else). This is what William reported.

@all but William
You're facing a different bug. The NVidia driver doesn't seem to work (hence DKMS fails to build and install the module) with your kernel version. This problem is solved in the latest version of the Nvidia driver.

Alberto Milone (albertomilone) wrote :

William, can you still reproduce the problem?

Kaltsi (kaltsi) wrote :

I have similar error:

Setting up dkms (2.0.21.1-0ubuntu3) ...
 * Running DKMS auto installation service for kernel 2.6.30-9-generic [ OK ]

Setting up nvidia-96-kernel-source (96.43.10-0ubuntu1) ...
Removing all DKMS Modules
Done.
Adding Module to DKMS build system
driver version= 96.43.10
Doing initial module build

Error! Your kernel source for kernel 2.6.30-9-generic cannot be found at
/lib/modules/2.6.30-9-generic/build or /lib/modules/2.6.30-9-generic/source.
Installing initial module

Error! Could not locate nvidia.ko for module nvidia in the DKMS tree.
You must run a dkms build for kernel 2.6.30-9-generic (i686) first.
Done.

Setting up nvidia-glx-96 (96.43.10-0ubuntu1) ...

 apt-cache policy nvidia-common
nvidia-common:
  Installed: (none)
  Candidate: 0.2.11
  Version table:
     0.2.11 0
        500 http://archive.ubuntu.com karmic/main Packages

nvidia-detector
none

Alberto Milone (albertomilone) wrote :

Kaltsi: that's a very different problem. The nvidia driver doesn't build with your kernel.

Changed in nvidia-common (Ubuntu):
status: New → Incomplete
chef (adotei) wrote :

Kaltsi and Andrei: As mentioned above, the nvidia driver doesn't build with your kernel. You will first have to move the nvidia-common file to a temporary location before installing the kernel headers and image. Don't forget to move it back after installation before reboot. Use the commands before for that. Other than that, Zeroth's instructions worked a charm for me.

$ sudo mv /etc/kernel/postinst.d/nvidia-common /tmp && sudo dpkg -i your-kernel-image.deb && sudo mv /tmp/nvidia-common /etc/kernel/postinst.d/

Spyros Theodoritsis (madmetal) wrote :

Same problem here , trying to install linux-image-2.6.30-02063005-generic_2.6.30-02063005_amd64.deb at Jaunty 64bit in order to avoid random freeze and i get

* nvidia (173.14.16)... nvidia (173.14.16): Installing module.
..........(bad exit status: 10)
  Build failed. Installation skipped.
                                                                         [fail]
run-parts: executing /etc/kernel/postinst.d/nvidia-common

apt-cache policy nvidia-common
nvidia-common:
  Installed: 0.2.11
  Candidate: 0.2.11
  Version table:
 *** 0.2.11 0
        500 http://gr.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

nvidia-detector
none

Spyros Theodoritsis (madmetal) wrote :

uninstalled nvidia drivers reboot in 2.6.30-02063005_amd64 and showed me a message that system is running in low graphics mode but everything works fine.

Launchpad Janitor (janitor) wrote :

[Expired for nvidia-common (Ubuntu) because there has been no activity for 60 days.]

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

Other bug subscribers