Nvidia driver failure solution
Problem Description
The graphics card driver has been installed in the ubuntu system, and the command on the command end nvidia-smi
suddenly displays:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Solution
1. View the version information of the installed driver
ls /usr/src | grep nvidia
Mine is nvidia-460.67.
2. Enter the following command
sudo apt-get install dkms
sudo dkms install -m nvidia -v 460.67
The process is shown in the figure below:
View nvidia-smi
that's all.