File "/usr/lib/python2.7/dist-packages/NvidiaDetector/nvidiadetector.py", line 87, in __get_value_from_name v = int(name) - ValueError: invalid literal for int() with base 10: '173-updates'

Bug #825259 reported by Chris Jones
214
This bug affects 34 people
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
Fix Released
High
Alberto Milone
Natty
Fix Released
High
Unassigned
Oneiric
Fix Released
High
Alberto Milone

Bug Description

The system thinks this error occurred int nvidia-common but I have an ATI graphics card installed. I have changed the graphics card from an nvidia card recenty but then did a fresh install. ???

ProblemType: Package
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-8-generic 3.0.0-8.10
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
Uname: Linux 3.0.0-7-generic x86_64
Architecture: amd64
Date: Fri Aug 12 15:22:17 2011
ErrorMessage: run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 1
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110715)
SourcePackage: nvidia-common
Title: package linux-image-3.0.0-8-generic 3.0.0-8.10 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 1
UpgradeStatus: Upgraded to oneiric on 2011-08-12 (0 days ago)

Revision history for this message
Chris Jones (jones-home) wrote :
Changed in nvidia-common (Ubuntu):
status: New → Confirmed
Changed in nvidia-common (Ubuntu):
importance: Undecided → High
summary: - package linux-image-3.0.0-8-generic 3.0.0-8.10 failed to
- install/upgrade: run-parts: /etc/kernel/postinst.d/nvidia-common exited
- with return code 1
+ File "/usr/lib/python2.7/dist-
+ packages/NvidiaDetector/nvidiadetector.py", line 87, in
+ __get_value_from_name v = int(name) - ValueError: invalid literal for
+ int() with base 10: '173-updates'
Revision history for this message
Brian Murray (brian-murray) wrote :

It looks to me like -updates needs to be stripped from the name in nvidiadetector.py.

Revision history for this message
Chris Jones (jones-home) wrote : Re: [Bug 825259] Re: File "/usr/lib/python2.7/dist-packages/NvidiaDetector/nvidiadetector.py", line 87, in __get_value_from_name v = int(name) - ValueError: invalid literal for int() with base 10: '173-updates'

On 12/08/11 18:02, Brian Murray wrote:
> It looks to me like -updates needs to be stripped from the name in
> nvidiadetector.py.
>
The update that included this a few minutes ago has fixed this bug for
me. It has also fixed the manifestation of the same bug under 825331.

Many thanks!

Chris Jones

Changed in nvidia-common (Ubuntu Oneiric):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
GaaL (gaal33) wrote :

nvidia-common_0.2.32_amd64 solved the bug for me.

Thanks.

Revision history for this message
Martin Pitt (pitti) wrote :

nvidia-common (1:0.2.32) oneiric; urgency=low

  * NvidiaDetector/alternatives.py:
    - Remove trailing whitespace.
  * NvidiaDetector/nvidiadetector.py:
    - Remove trailing whitespace.
    - Ignore "-updates" flavours and recommend only stable flavours.
      This fixes a crash in the nvidia detector.
  * setup.py:
    - Disable kernel hooks.
 -- Alberto Milone <email address hidden> Fri, 12 Aug 2011 17:33:04 +0200

Changed in nvidia-common (Ubuntu Oneiric):
assignee: Canonical Desktop Team (canonical-desktop-team) → Alberto Milone (albertomilone)
status: Confirmed → Fix Released
Revision history for this message
Chow Loong Jin (hyperair) wrote :

This also affects me on Natty.

Revision history for this message
Martin Stjernholm (msub) wrote :

I also ran into this on Natty. I'm using the natty, natty-security, natty-updates and natty-backports archives. nvidia-common is 0.2.30.

Revision history for this message
LaMont Jones (lamont) wrote :

I have a natty system (which runs oneiric kernels because it has a realtek rtl8111/8168B network card, which causes all kinds of issues on natty's kernel), and have seen this

dpkg -l | grep nvidia
ii nvidia-common 0.2.30 Find obsolete NVIDIA drivers
rc nvidia-glx-new 169.12+2.6.24.16-23.56 NVIDIA binary XFree86 4.x/X.Org 'new' driver
rc nvidia-kernel-common 20080825+1ubuntu2 NVIDIA binary kernel module common files
ii nvidia-settings 270.29-0ubuntu1 Tool of configuring the NVIDIA graphics driver
ii nvidia-xconfig 1.0+20070502-1ubuntu1 The NVIDIA X Configuration Tool

Having this bugfix SRUed in natty would be wonderful.

Revision history for this message
Alberto Milone (albertomilone) wrote :

SRU request:

Test-case:
Dist-upgrading from Natty to Oneiric causes nvidia-common to crash because it doesn't know how to handle the "-updates" flavours of proprietary drivers. The mere availability of such packages in the apt cache (no need to have them installed) will trigger the error when a new kernel is installed.

I backported nvidia-common (1:0.2.33~oneiric1) from Oneiric and it's waiting for approval.

Changed in nvidia-common (Ubuntu Natty):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Martin Kaffanke (martin-kaffanke) wrote :

For me its the same here on natty 11.04. I hope that fix comes here too.

Revision history for this message
Alberto Milone (albertomilone) wrote :

After discussing the SRU with Steve Langasek, I asked him to reject my upload, I cherry-picked only some fixes from 1:0.2.32 in Oneric and used them in version 0.2.30.1. Furthermore I also used dpkg-maintscript-helper, as requested. It's all uploaded and waiting for approval now.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Chris, or anyone else affected,

Accepted nvidia-common into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in nvidia-common (Ubuntu Natty):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Ludwin Janvier (lud-janvier) wrote :

package update from natty-proposed (0.2.30.1_i386) is ok to me (using aptitude).
I had this weird line :
File descriptor 89 (/var/log/apt/history.log) leaked on lvs invocation. Parent PID 32112: /bin/sh
which seems independent to this package. probably #591823.

Revision history for this message
kistareddyd (kistareddyd) wrote :
Download full text (3.2 KiB)

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103, <> line 5.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103, <> line 5.
(Reading database ... 202661 files and directories currently installed.)
Preparing to replace libcolord1 0.1.12-1ubuntu1 (using .../libcolord1_0.1.12-1ubuntu2_i386.deb) ...
Unpacking replacement libcolord1 ...
Preparing to replace colord 0.1.12-1ubuntu1 (using .../colord_0.1.12-1ubuntu2_i386.deb) ...
Unpacking replacement colord ...
Preparing to replace libnautilus-extension1 1:3.1.92-0ubuntu1 (using .../libnautilus-extension1_1%3a3.1.92-0ubuntu2_i386.deb) ...
Unpacking replacement libnautilus-extension1 ...
Preparing to replace nautilus-data 1:3.1.92-0ubuntu1 (using .../nautilus-data_1%3a3.1.92-0ubuntu2_all.deb) ...
Unpacking replacement nautilus-data ...
Preparing to replace nautilus 1:3.1.92-0ubuntu1 (using .../nautilus_1%3a3.1.92-0ubuntu2_i386.deb) ...
Unpacking replacement nautilus ...
Processing triggers for man-db ...
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103.
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Processing triggers for gconf2 ...
Processing triggers for libglib2.0-0 ...
Processing triggers for gnome-menus ...
Processing triggers for bam...

Read more...

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-common - 0.2.30.1

---------------
nvidia-common (0.2.30.1) natty-proposed; urgency=low

  * debian/nvidia-common.preinst:
    - Make sure to remove any leftover kernel hooks from nvidia-common.
  * debian/nvidia-common.postinst:
    - Disable the debconf interface.
  * NvidiaDetector/nvidiadetector.py:
    - Ignore "-updates" flavours and recommend only stable flavours.
      This fixes a crash in the nvidia detector which can also be
      reproduced on dist-upgrades when upgrading the kernel (LP: #825259).
  * setup.py:
    - Disable kernel hooks.
 -- Alberto Milone <email address hidden> Thu, 25 Aug 2011 14:34:46 +0200

Changed in nvidia-common (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
Ronnie McMaster (ronnie-mcmaster) wrote :

I have nvidia-common 1:0.2.35 and this error is still being shown in the terminal.

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103.

Revision history for this message
Allen Biggins (allen-biggins) wrote :

I have 11.10 64 bit on a medion notebook which is up to date and I have nvidia-common 1:0.2.35 and this error is still being shown in the terminal when certain updates are executed. (Despite all the hoopla, I have been able to install 11.10 on a notebook that has the optimus technology)

I notice that the message 'Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line .....' mentions pixmap yet in the script titled 'Gnome.pm' it references 'my $logo="/usr/share/pixmaps/$distribution-logo.png"'. The pixmaps folder does exist but the .png file referenced does not appear to be located there. The $ in front of distribution-logo.png indicates to me that variable substitution is taking place but that doesn't work.

In summary we have an error where the pixmap is being referenced but doesn't exist and the file $distribution-logo.png doesn't exist in the incorrectly referenced folder.

Is there a fix to resolve this for 11.10 64 bit?

I'm unaware what version of 11.10 ronnie-mcmaster is using so it is a possibility that this bug is present in both the 32 bit and 64 bit versions.

Revision history for this message
Ludwin Janvier (lud-janvier) wrote :

the "Unable to locate theme engine in module_path: "pixmap"" is another bug, #762167 i suppose. To fix it, install the gtk2-engines-pixbufInstall gtk2- engines-pixbuf package.

Revision history for this message
openick (openick) wrote :

While searching for a solution to the errors:

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97.
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103.

I found the following:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/825114

Leann Ogasawara (leannogasawara) wrote on 2011-08-15:

This appears to be a duplicate of bug 825259 so I am marking it as such. It also appears it was fixed as of yesterday. Thanks.

Could you point me to the page where the fix is outlined?

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.