nvidia-smi
error
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver
Reason: the Ubuntu kernel has been updated, which is inconsistent with the kernel when the graphics card driver was installed
Solution 1
reduce the system kernel, select low kernel in the boot preference, or change the configuration file to automatically select low version kernel by default boot. Refer to the link for the method
Solution 2
update the graphics card driver
view the installed driver version
ls /usr/src
Display my graphics driver for nvidis-470 reinstall updated graphics driver
sudo apt install --reinstall nvidia-driver-470
After the update is successful, restart the computer
nvidia-smi
It can be displayed normally
Thu Mar 24 10:18:37 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 37C P0 N/A/ N/A | 439MiB/ 4046MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 3149 G /usr/lib/xorg/Xorg 193MiB |
| 0 N/A N/A 3314 G /usr/bin/gnome-shell 70MiB |
| 0 N/A N/A 4010 G /usr/lib/firefox/firefox 171MiB |
+-----------------------------------------------------------------------------+
Read More:
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- NVIDIA SMI error after Ubuntu 20.04 restart [How to Solve]
- [Solved] OCI runtime create failed: /usr/bin/nvidia-container-runtime did not terminate successfully: unknown
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- [Solved] Error response from daemon: manifest for nvidia/cuda:latest not found: manifest unknown: manifest
- [Solved] Warning: detected “cgroupfs“ as the Docker cgroup driver. The recommended driver is “systemd“.
- [Solved] TclError: couldn‘t connect to display “localhost:11.0“
- [Solved] ERROR: The kernel module failed to load, because it was not signed by a key that is trusted by the
- [Solved] CUDA driver version is insufficient for CUDA runtime version
- [Solved] linux kernel load driver Error: module verification failed: signature and/or required key missing – tainting kernel
- Linux Virtual Machine Boot Container: Error response from daemon: driver failed programming external connectivity on endpoint
- How to Solve Error: Driver “kvm2“ not found
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- Couldn‘t create temporary archive name. [How to Solve]
- [Solved] Xshelln Connect to Local VM linux Error: Could not connect to ‘XXX.168.122.1‘ (port 22): Connection failed
- SSH Connect Service Error: Could not connect to ‘xxx.xxx.xx.xx‘ (port 22): Connection failed.
- Ubuntu Startup Error: warning failed to connect to lvmetad,falling back to device scanning
- Linux Error: Failed to connect to ::1: No route to the host
- [Solved] Failed to connect to 127.0.0.1 port XXXX: Connection refused