I would like to install the latest nvidia driver (367.27
) for my GeForce 940MX
.
Why I want to switch
Currently, I have 361.42
installed from the official repositories. However, this one has problems with TensorFlow (issue 2810).
What I did
- Download the latest driver from http://www.nvidia.com/Download/index.aspx
- Close everything, log out, switch to console (Ctrl + Alt+F2)
- Shut of lightdm (
sudo service lightdm stop
) - Execute the downloaded script (
sudo sh NVIDIA-Linux-x86_64-367.27.run
)
What I expected
I thought this would simply update the driver.
What happened
After accepting the EULA, I got an error. It asked me if I wanted to continue the installation or abort it. I aborted and had a look at the error message:
$ cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Jul 15 13:41:43 2016
installer version: 367.27
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
nvidia-installer command line:
./nvidia-installer
Unable to load: nvidia-installer ncurses v6 user interface
Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> License accepted.
-> Installing NVIDIA driver version 367.27.
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Abort installation)
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
How can I fix this problem?
How I rolled back
After ignoring the warning and installing it, I didn't get any graphics. Just a black screen. So I undid the installation:
- Press shift while startup
- Go into a root shell
- Make it writable by
mount -o remount,rw /
(-
is?
and/
is-
in the american layout) sh NVIDIA-Linux-x86_64-367.27.run --uninstall
nvidia-installer ncurses user interface
(without the 'v6'). Was there anything else in the error message that you remember (did it mention DKMS or signing by any chance?)ppa:graphics-drivers/ppa
usually has the latest nVidia drivers though the newest version of the 367 branch is in the official repositories now.