NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.

错误详情:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.
Make sure that the latest NVIDIA driver is installed and running.

  重启服务器之后,nvidia-smi就无法与英伟达驱动“交流”了,之前的解决方案都是重装英伟达驱动,今天查了一下,查到了解决方案,在此记录一下。
  输入以下两行命令:

sudo apt install dkms
sudo dkms install -m nvidia -v 418.87.00

后边的版本号使用下边命令查询

ls /usr/src | grep nvidia

你可能感兴趣的:(学习生活,linux)