I want to install Docker NVIDIA packages on Ubuntu Desktop (Windows 10 Pro is a host OS). I do have Docker runnung and now I am trying to install the NVIDIA driver for Ubuntu.
After the following steps:
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install nvidia-driver-510
I have this (after rebooting):
sarah@WIN-8BAACGLFG8Q:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Then I ran the same command on my host OS:
C:\Users\User>nvidia-smi
Thu Mar 17 22:15:45 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 461.92 Driver Version: 461.92 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce MX330 WDDM | 00000000:02:00.0 Off | N/A |
| N/A 42C P0 N/A / N/A | 64MiB / 2048MiB | 3% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
After that, I thought that maybe versions have to match and tried to install nvidia-driver-460 on Ubuntu. Error remained.
Then I followed the solutions from here. Nothing changed.
This Stack Overflow answer didn't help either.
I also disabled Secure Boot. The same.