Cannot query NVIDIA drivers on Ubuntu - new issue


After solving the problem, described here
… the troubles related to the problem reappear.

Probably caused by update/upgrade, the request nvidia-smi doesn’t work anymore:

pavel@ALABAMA:~$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch

Any suggestions ?


The only solution that I’ve found is to reinstall CUDA.
So, 1st I de-installed CUDA using:

sudo apt-get --purge remove “nvidia

Then I’ve tried to install once more using runfile approach from here:

Installation failed:

pavel@ALABAMA:~/Downloads$ sudo sh
[sudo] password for pavel: 
 Installation failed. See log at /var/log/cuda-installer.log for details.
pavel@ALABAMA:~/Downloads$ more /var/log/cuda-installer.log
[INFO]: Driver not installed.
[INFO]: Checking compiler version...
[INFO]: gcc location: /usr/bin/gcc

[INFO]: gcc version: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 

[INFO]: Initializing menu
[INFO]: Setup complete
[INFO]: Initializing writeable menu
[INFO]: Initializing writeable menu
[INFO]: Initializing writeable menu
[INFO]: Components to install: 
[INFO]: Driver
[INFO]: 440.33.01
[INFO]: Executing --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd  2>&1
[INFO]: Finished with code: 256
[ERROR]: Install of driver component failed.
[ERROR]: Install of 440.33.01 failed, quitting

I reinstall CUDA.
Now it’s Ok:
pavel@ALABAMA:~$ nvidia-smi
Wed Mar 11 15:33:21 2020
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| 0 GeForce GTX 1050 On | 00000000:01:00.0 Off | N/A |
| N/A 44C P3 N/A / N/A | 209MiB / 2002MiB | 1% Default |

| Processes: GPU Memory |
| GPU PID Type Process name Usage |
| 0 1028 G /usr/lib/xorg/Xorg 115MiB |
| 0 1313 G /usr/bin/gnome-shell 93MiB |

Sorry for late reply.
That’s great, thanks a lot for updating the forum.