When running nvidia-smi, I get the following error:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
1. First query the version number of the previously installed nvidia driver, and enter on the command line:
ls /usr/src | grep nvidia
2. Enter in sequence on the command line:
sudo apt install dkms
sudo dkms install -m nvidia -v 460.67
460.67 is the version number corresponding to itself.
3. Enter nvidia-smi again to display it correctly.
Mainly to record the problems I usually encounter and share them with you.
If there is any infringement, please contact me
Like it and support it