nvidiadetector.py fails with "IndexError: list index out of range" trying to detect SLI MSI N460GTX

Bug #658034 reported by Devin Ben-Hur
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Binary package hint: nvidia-common

This has been blocking an install of a new system. First it was failing using the alternative install disk, then after partitioning and setting up LVM via alt install, a desktop install succeeded. After initial boot from desktop install, upgrading packages wanted to take a new kernel update. The kernel postinstall executes /etc/kernel/postinst.d/nvidia-common which in turn executes /usr/bin/nvidiadetector which exits failing to find a driver for the dual SLI MSI N460GTX Cyclone 1GB cards.

--- /var/log/apt/term.log snippet ---
Setting up linux-image-2.6.32-24-generic (2.6.32-24.43) ...

Running depmod.

update-initramfs: Generating /boot/initrd.img-2.6.32-24-generic

Not updating initrd symbolic links since we are being updated/reinstalled

(2.6.32-24.39 was configured last, according to dpkg)

Not updating image symbolic links since we are being updated/reinstalled

(2.6.32-24.39 was configured last, according to dpkg)

Running postinst hook script /usr/sbin/update-grub.

Generating grub.cfg ...

Found linux image: /boot/vmlinuz-2.6.32-25-generic

Found linux image: /boot/vmlinuz-2.6.32-24-generic

Found initrd image: /boot/initrd.img-2.6.32-24-generic

Found memtest86+ image: /memtest86+.bin

Found Windows 7 (loader) on /dev/sda2

done

Examining /etc/kernel/postinst.d.

run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.32-24-generic /boot/vmlinuz-2.6.32-24-generic

Traceback (most recent call last):

  File "/usr/bin/nvidia-detector", line 8, in <module>

    a = NvidiaDetection(printonly=True)

  File "/usr/lib/python2.6/dist-packages/NvidiaDetector/nvidiadetector.py", line 85, in __init__

    self.printSelection()

  File "/usr/lib/python2.6/dist-packages/NvidiaDetector/nvidiadetector.py", line 408, in printSelection

    driver = self.selectDriver()

  File "/usr/lib/python2.6/dist-packages/NvidiaDetector/nvidiadetector.py", line 328, in selectDriver

    choice = self.driversForCards[self.driversForCards.keys()[0]][0]

IndexError: list index out of range

run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 1

Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-24-generic.postinst line 1003.

dpkg: error processing linux-image-2.6.32-24-generic (--configure):

 subprocess installed post-installation script returned error exit status 2
---

Editing nvidiadetector.py to turn on verbose mode, it appears to detect two devices which I have installed but then discards them as "unsupported":
root@chariot:~# ./nvidia-detector
NVIDIA card found (10de:0e22)
NVIDIA card found (10de:0e22)
Removing unsupported card 10de:0e22
Traceback (most recent call last):
  File "./nvidia-detector", line 8, in <module>
    a = NvidiaDetection(printonly=True,verbose=True)
  File "/usr/lib/python2.6/dist-packages/NvidiaDetector/nvidiadetector.py", line 85, in __init__
    self.printSelection()
  File "/usr/lib/python2.6/dist-packages/NvidiaDetector/nvidiadetector.py", line 408, in printSelection
    driver = self.selectDriver()
  File "/usr/lib/python2.6/dist-packages/NvidiaDetector/nvidiadetector.py", line 328, in selectDriver
    choice = self.driversForCards[self.driversForCards.keys()[0]][0]
IndexError: list index out of range

root@chariot:~# lspci | grep -i nvidia
03:00.0 VGA compatible controller: nVidia Corporation Device 0e22 (rev a1)
03:00.1 Audio device: nVidia Corporation Device 0beb (rev a1)
04:00.0 VGA compatible controller: nVidia Corporation Device 0e22 (rev a1)
04:00.1 Audio device: nVidia Corporation Device 0beb (rev a1)

root@chariot:~# lshw -C display
  *-display UNCLAIMED
       description: VGA compatible controller
       product: nVidia Corporation
       vendor: nVidia Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:f2000000-f3ffffff memory:c8000000-cfffffff(prefetchable) memory:d4000000-d7ffffff(prefetchable) ioport:df00(size=128) memory:d0000000-d007ffff(prefetchable)
  *-display UNCLAIMED
       description: VGA compatible controller
       product: nVidia Corporation
       vendor: nVidia Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:f6000000-f7ffffff memory:d8000000-dfffffff(prefetchable) memory:e4000000-e7ffffff(prefetchable) ioport:cf00(size=128) memory:e0000000-e007ffff(prefetchable)

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-25-generic 2.6.32-25.44
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
Architecture: amd64
Date: Sun Oct 10 17:33:42 2010
ErrorMessage: run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 1
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
SourcePackage: nvidia-common
Title: package linux-image-2.6.32-25-generic 2.6.32-25.44 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 1

Revision history for this message
Devin Ben-Hur (dbenhur) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. Setting to 'confirmed' due to duplicate cases.

Changed in nvidia-common (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
madbiologist (me-again) wrote :

It looks like the NVIDIA driver included in Ubuntu 10.04 "Lucid Lynx" is not recent enough to support this card. Does this problem still occur on a recent version of Ubuntu?

Alternatively, if you want to try the open-source nouveau driver, Ubuntu 11.04 or later should have support. (Basic support was introduced in kernel 2.6.36, with better support coming later. Ubuntu 11.04 has kernel 2.6.38).

Changed in nvidia-common (Ubuntu):
status: Confirmed → Incomplete
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.