nvidia-glx-config suggests invalid command

Bug #11743 reported by Kristian Hermansen
4
Affects Status Importance Assigned to Milestone
linux-restricted-modules-2.6.15 (Debian)
Invalid
Undecided
Unassigned
linux-restricted-modules-2.6.15 (Ubuntu)
Fix Released
Medium
Daniel Stone

Bug Description

when running `sudo nvidia-glx-config enable` and the process fails to update the
XF86Config-4 file, it then suggests to run a command which will not work.

--snip--
$ sudo nvidia-glx-config enable
Password:

Error: your XFree86 configuration has been altered.
This script cannot proceed automatically. If you believe that this
not correct, you can update the md5sum entry executing the following
command:
sudo md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
otherwise edit manually /etc/X11/XF86Config-4 to change the Driver section
from nv to nvidia.
--snip--

The command `sudo md5sum /etc/X11/XF86Config-4 >
/var/lib/xfree86/XF86Config-4.md5su` will not work because of the way redirect
works. See below:

--snip--
$ sudo md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
bash: /var/lib/xfree86/XF86Config-4.md5sum: Permission denied
--snip--

To correct this problem the actual suggested command should be `md5sum
/etc/X11/XF86Config-4 | sudo tee /var/lib/xfree86/XF86Config-4.md5sum` because
that will work.

--snip--
$ md5sum /etc/X11/XF86Config-4 | sudo tee /var/lib/xfree86/XF86Config-4.md5sum
84f48f6f899d99d8443997c26e243fed /etc/X11/XF86Config-4
--snip--

It should be a quick one minute fix. In the future, can I update simple things
like this myself in the source tree? If you have time, shoot me a quick email
that will help me do just that so that in the future I don't need to rely on
bugzilla :-)

Revision history for this message
Daniel Stone (daniels) wrote :

Will fix in the next revision of l-r-m.

Revision history for this message
Daniel Stone (daniels) wrote :

Fixed last night.

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The version of Ubuntu your reporting this issue on is in End of Life status. You can learn more about this at https://wiki.ubuntu.com/Releases Please update Ubuntu, provide a detailed error report, and mark this bug as new. Thanks!

Changed in linux-restricted-modules-2.6.15 (Debian):
status: New → Invalid
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.