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] 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
- NVIDIA SMI error after Ubuntu 20.04 restart [How to Solve]
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- The resolution of Ubuntu 16.04 screen can’t be modified and the solution of circulating login
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- [Solved] Error response from daemon: manifest for nvidia/cuda:latest not found: manifest unknown: manifest
- [Solved] ubuntu Boot Error: /dev/nume0n1p2:clean
- [Solved] WSL error: wslregisterdistribution failed with error: 0x800701bc
- Ubuntu Run Error: not syncing : VFS: Unable to mount root
- Apex library Install Error: amp not installed error [How to Solve]
- [Solved] ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
- ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…
- [Solved] ioctl_cfg80211.c:1141:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
- [How to Fix]Element is not attached to the page document record
- U-boot NFS download file error: loading: * * * error: File lookup fail solution
- Opensuse12.3 installation of VirtualBox error resolution
- Windows11 Install Ubuntu Error: WslRegisterDistribution failed with error: 0x800701bc