Comment 18 for bug 477309

Revision history for this message
Luiz Carlos Geron (luizgeron) wrote :

I'm running kubuntu 10.04 and had the same problem. First, it would fail to parse the xorg.conf file, so i removed it and ran nvidia-xconfig. It warned me that pkg-config was not found, so I installed it and ran nvidia-xconfig again. Now nvidia-settings kept saying "Unable to open X config file '/etc/X11/xorg.conf' for writing.", so I ran it from konsole and noticed this:

Traceback (most recent call last):
  File "/usr/share/screen-resolution-extra/nvidia-polkit.py", line 20, in <module>
    import gtk, gobject, sys, dbus, logging, os, re
ImportError: No module named gtk

ERROR: Unable to open X config file '/etc/X11/xorg.conf' for writing.

So I installed the package python-gtk2 and ran nvidia-settings again. It worked perfectly.