nvidia-glx-config needs locale set to C

Bug #9147 reported by Tim
6
Affects Status Importance Assigned to Milestone
linux-restricted-modules-2.6.15 (Ubuntu)
Fix Released
Medium
Fabio Massimo Di Nitto

Bug Description

I had nvidia drivers working fine under the 4.10 preview release. However, I
just downloaded the 4.10 release candidate, installed it over my last install,
and nvidia-glx-config fails to start. It complains about a cp command 'PM'
specified file or target does not exist. I checked through the script and found
only 1 cp command and nothing about any 'PM'.
  This was the first thing I attempted to do upon booting for the first time, so
I didn't screw anything up. I did run it with "sudo nvidia-glx-config enable"
and "sudo su, nvidia-glx-config enable".

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

can you try:

sudo sh -x nvidia-glx-config enable

and send me the entire output?

It can be extremely long.

Thanks
Fabio

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

From the submitter:

+ set -e
++ whoami
+ '[' root '!=' root ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ exec /usr/share/debconf/frontend nvidia-glx-config enable
cp: `AM': specified destination directory does not exist
Try `cp --help' for more information.

Matt do you have any idea why debconf can fail in that way?

Revision history for this message
Colin Watson (cjwatson) wrote :

That's not debconf failing, it's the config script. When the debconf confmodule
re-execs the calling script, you lose the -x flag.

You need to edit nvidia-glx-config and put 'set -x' as the second line, then run
'sudo nvidia-glx-config enable'. 'sh -x' won't do what you want.

Revision history for this message
Tim (memphis-pwn) wrote :

++ whoami
+ '[' root '!=' root ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ exec /usr/share/debconf/frontend /usr/sbin/nvidia-glx-config enable
++ whoami
+ '[' root '!=' root ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_version 2.0
+ _db_cmd 'VERSION 2.0'
+ echo 'VERSION 2.0'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=2.0
+ return 0
+ manage_kernel_driver enable
++ tempfile
+ tmpfile=/tmp/file538Qnw
+ chmod 644 /tmp/file538Qnw
+ modprobe nvidia
++ cat /proc/modules
++ awk '{print $1}'
++ grep '^nvidia$'
+ '[' -z nvidia ']'
+ grep -Eq '^nvidia$' /etc/modules
+ grep -Eq '^# nvidia$' /etc/modules
+ rm -f /tmp/file538Qnw
+ manage_x_driver enable
+ check_config
+ '[' -e /etc/X11/XF86Config-4 ']'
+ '[' -e /var/lib/xfree86/XF86Config-4.md5sum ']'
++ md5sum /etc/X11/XF86Config-4
++ cat /var/lib/xfree86/XF86Config-4.md5sum
+ '[' '67721c2d0c91f95322c6a88d0a20dd75 /etc/X11/XF86Config-4' =
'67721c2d0c91f95322c6a88d0a20dd75 /etc/X11/XF86Config-4' ']'
+ return 0
+ do_debconf enable
+ db_set xserver-xfree86/config/device/driver nvidia
+ _db_cmd 'SET xserver-xfree86/config/device/driver' nvidia
+ echo 'SET xserver-xfree86/config/device/driver' nvidia
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ write_x_config
+ backup_config
+ mkdir -p /var/backups/xfree86
++ date +%F-%X
+ data=2004-10-16-11:33:12 AM
+ cp /etc/X11/XF86Config-4 /var/backups/xfree86/XF86Config-4.2004-10-16-11:33:12 AM
cp: `AM': specified destination directory does not exist
Try `cp --help' for more information.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

(In reply to comment #4)

> ++ date +%F-%X
> + data=2004-10-16-11:33:12 AM
> + cp /etc/X11/XF86Config-4
/var/backups/xfree86/XF86Config-4.2004-10-16-11:33:12 AM
> cp: `AM': specified destination directory does not exist
> Try `cp --help' for more information.

This still does not explain why AM is generated in that date reference.

 date +%F-%X
2004-10-16-18:17:41

that's according to date man page.

possibly a lang setting that changes the documented behaviour?

Revision history for this message
Matt Zimmerman (mdz) wrote :

       %X locale’s time representation (%H:%M:%S)

You are asking for the time representation appropriate for the locale.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Matt is there anybody working on this package? the fix is trivial but i don't
want to clash
with other people work.

Fabio

Revision history for this message
Matt Zimmerman (mdz) wrote :

I am not aware of anyone working on it.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Hi Tim,
      can you be so kind to give me the output of the following commands:

env

LC_ALL=C date +%F-%X

date +%F-%H:%M:%S

Thanks
Fabio

PS Please try to do it asap so that i can get the fix into warty.

Revision history for this message
Tim (memphis-pwn) wrote :

Created an attachment (id=519)
output of env

Revision history for this message
Tim (memphis-pwn) wrote :

LC_ALL=C date +%F-%X
2004-10-17-23:55:33

date +%F-%H:%M:%S
2004-10-17-23:56:38

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Thanks a lot Tim!

waiting for approval to upload the fix :-)

Fabio

Revision history for this message
Tim (memphis-pwn) wrote :

glad I could be of service!! Ubuntu is really shaping up! :)

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Fixed with linux-restricted-modules-2.6.8.1_2.6.8.1.3-4 upload.

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.