NVIDIA驱动失效简单解决方案:NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
电脑跑着程序,之后莫名关机了,开机后用nvidia-smi查看显卡状态信息报错
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
可以按照以下方式解决
# 查看自己之前安装的驱动版本
ls /usr/src | grep nvidia
比如我的是nvidia-470.86
# 输入以下命令即可解决
sudo apt-get install dkms
sudo dkms install -m nvidia -v 470.86