Friday, March 19, 2010

E: Sub-process /usr/bin/dpkg returned an error code (1)

https://bugs.launchpad.net/ubuntu/+source/nvidia-common/+bug/331675


Workaround:

(cd /usr/bin/; sudo mv nvidia-detector nvidia-detector2)

Then finish installing nvidia-common

(cd /usr/bin/; sudo mv nvidia-detector2 nvidia-detector)

Should work. The problem looks like that it tries to execute the python script before the python libraries are installed!


Problem:
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common
Traceback (most recent call last):
File "/usr/bin/nvidia-detector", line 2, in
import NvidiaDetector
ImportError: No module named NvidiaDetector
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 1
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.28-8-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.28-8-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.28-8-generic; however:
Package linux-headers-2.6.28-8-generic is not configured yet.
dpkg: error processing linux-headers-generic (--configure):
dependency problems - leaving unconfigured
were encountered while processing:
linux-image-2.6.28-8-generic
linux-restricted-modules-2.6.28-8-generic
linux-image-generic
linux-restricted-modules-generic
linux-generic
linux-image
linux-headers-2.6.28-8-generic
linux-headers-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

No comments: