package linux-image-2.6.27-7-generic 2.6.27-7.16 failed to install/upgrade: subprocess post-installation script returned error exit status 2

Bug #305526 reported by Joel Cross
2
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

I installed the latest version (7.10) of Kubuntu a few days ago, and since running a package upgrade, I encounter this problem whenever running apt-get.

...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.27-7-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.27-7.14 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.27-7.14 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 ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/vmlinuz-2.6.27-7-generic
Found kernel: /boot/memtest86+.bin
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-7-generic
 * nvidia (177.80)... nvidia (177.80): 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-7-generic.postinst line 1002.
dpkg: error processing linux-image-2.6.27-7-generic (--configure):
 subprocess post-installation script returned error exit status 2
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
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.27-9-generic
Found kernel: /boot/vmlinuz-2.6.27-7-generic
Found kernel: /boot/memtest86+.bin
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
 * nvidia (177.80)... nvidia (177.80): 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-restricted-modules-2.6.27-9-generic:
 linux-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-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-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):
 dNo 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
                                                      ependency 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-7-generic (2.6.27-7.16) ...
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-7-generic
 * nvidia (177.80)...nvidia (177.80): 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-7-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.27-7-generic (--configure):
 subprocess post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-2.6.27-7-generic
 linux-image-2.6.27-9-generic
 linux-restricted-modules-2.6.27-9-generic
 linux-image-generic
 linux-restricted-modules-generic
 linux-generic
 linux-headers-2.6.27-7-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried removing the original offending package (the kernel headers) but I I found that it seems to be occurring with all the kernel packages, which I obviously can't remove! Is this bug possibly something to do with the NVidia drivers, which I currently have installed?

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 2
LsUsb:
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 004: ID 413c:2003 Dell Computer Corp. Keyboard
 Bus 001 Device 003: ID 0461:4d15 Primax Electronics, Ltd
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
NonfreeKernelModules: nvidia
Package: linux-image-2.6.27-7-generic 2.6.27-7.16
ProcCmdLine: User Name=UUID=ed38fcf1-c5e6-4131-b426-1f25d5108817 ro quiet splash
ProcVersionSignature: Ubuntu 2.6.27-9.19-generic
SourcePackage: linux
Title: package linux-image-2.6.27-7-generic 2.6.27-7.16 failed to install/upgrade: subprocess post-installation script returned error exit status 2

Revision history for this message
Joel Cross (ukch) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Joel,

This seems like a duplicate to bug 273681 so I am marking it as such. It would be good if you could continue to track this issue with that report and provide any additional information there. Thanks.

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.