/etc/kernel/postinst.d/nvidia-common exited with return code 2 - Can't locate Debconf/Element/Dialog.pm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-common (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nvidia-common
my@host~$ sudo apt-get dselect-upgrade
[sudo] password for my:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 1 non aggiornati.
5 non completamente installati o rimossi.
Dopo quest'operazione, verranno occupati 0B di spazio su disco.
Continuare [S/n]? s
Configurazione di linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
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-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
debconf: Impossibile caricare Debconf:
BEGIN failed--compilation aborted at (eval 26) line 2, <GEN0> line 2.
Can't locate object method "new" via package "Debconf:
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: errore nell'elaborare linux-image-
il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
dpkg: problemi con le dipendenze impediscono la configurazione di linux-image-
linux-
Il pacchetto linux-image-
dpkg: errore nell'elaborare linux-image-generic (--configure):
problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di linux-generic:
linux-generic dipende da linux-image-generic (= 2.6.32.23.24); comunque:
Il pacchetto linux-image-generic non è ancora configurato.
dpkg: errore nell'elaborare linux-generic (--configure):
problemi con le dipendenze - lasciato non configurato
Configurazione di linux-headers-
Non è stata scritta alcuna segnalazione apport poiché il messaggio di errore indica che è un errore da un fallimento precedente.
run-parts: executing /etc/kernel/
debconf: Impossibile caricare Debconf:
BEGIN failed--compilation aborted at (eval 26) line 2, <GEN0> line 2.
Can't locate object method "new" via package "Debconf:
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: errore nell'elaborare linux-headers-
il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
dpkg: problemi con le dipendenze impediscono la configurazione di linux-headers-
linux-
Il pacchetto linux-headers-
dpkg: errore nell'elaborare linux-headers-
problemi con le dipendenze - lasciato non configurato
Non è stata scritta alcuna segnalazione apport poiché è stato già raggiunto il valore MaxReport
close failed in file object destructor:
Error in sys.excepthook:
Original exception was:
Si sono verificati degli errori nell'elaborazione:
linux-
linux-
linux-generic
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: linux-image-
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Thu Jun 17 12:04:34 2010
ErrorMessage: run-parts: /etc/kernel/
SourcePackage: nvidia-common
Title: package linux-image-
summary: |
- package linux-image-2.6.32-23-generic 2.6.32-23.37 failed to - install/upgrade: run-parts: /etc/kernel/postinst.d/nvidia-common exited - with return code 2 - Can't locate Debconf/Element/Dialog.pm + /etc/kernel/postinst.d/nvidia-common exited with return code 2 - Can't + locate Debconf/Element/Dialog.pm |
Changed in nvidia-common (Ubuntu): | |
status: | New → Confirmed |
This bug report sucks a little, since the output of apt is in Italian. If anyone wants the error message in English, here you go:
####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ## 2.6.32- 23-generic linux-headers- generic 2.6.32- 23-generic is already the newest version. generic is already the newest version. 2.6.32- 23-generic (2.6.32-23.37) ... header_ postinst. d. header_ postinst. d/dkms 2.6.32-23-generic /boot/vmlinuz- 2.6.32- 23-generic header_ postinst. d/nvidia- common 2.6.32-23-generic /boot/vmlinuz- 2.6.32- 23-generic header_ postinst. d/nvidia- common exited with return code 10 header_ postinst. d at /var/lib/ dpkg/info/ linux-headers- 2.6.32- 23-generic. postinst line 110. 2.6.32- 23-generic (--configure): generic: headers- generic depends on linux-headers- 2.6.32- 23-generic; however: 2.6.32- 23-generic is not configured yet. generic (--configure):
Errors were encountered while processing: headers- 2.6.32- 23-generic headers- generic ####### ####### ####### ####### ####### ####### ####### ####### ####### ##
[root@detox: ~]# apt-get install linux-headers-
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-
linux-headers-
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-headers-
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-headers-
linux-
Package linux-headers-
dpkg: error processing linux-headers-
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
#######
As you can see, the script at /etc/kernel/ header_ postinst. d/nvidia- common fails.
The content of the script is:
####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ## debconf/ confmodule common/ obsolete- driver false common/ obsolete- driver || true
#!/bin/bash -e
. /usr/share/
db_set nvidia-
db_input high nvidia-
if [ -x /usr/bin/ nvidia- detector ]; then $(nvidia- detector) common/ obsolete- driver seen false common/ obsolete- driver latest $LATEST common/ obsolete- driver || true ####### ####### ####### ####### ####### ####### ####### ####### ####### ##
LATEST=
if [ ${LATEST} ] && [ "${LATEST}" != "none" ]; then
db_fset nvidia-
db_subst nvidia-
db_input high nvidia-
db_go || true
fi
fi
#######
I'd greatly appreciate any help in order to fix this! I don't just want to add an exit 0 to the end of the script.