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

问题描述,ubuntu18.04上在 软件更新 功能中安装显卡驱动后,使用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

在网上找到两种解决办法。

方法一:

cd /usr/src 进入目录后查看驱动版本号,比如(430.xx)
sudo apt install dkms
sudo dkms install -m nvidia -v 430.xx
重新输入nvidia-smi查看是否正常

方法二:

内核降级

参考:
https://blog.csdn.net/zhe_csdn/article/details/96431265
https://blog.csdn.net/qq_41870658/article/details/93330041

如果有一天我们淹没在茫茫人海中庸碌一生,那一定是我们没有努力活得丰盛
原文地址:https://www.cnblogs.com/yeran/p/12115270.html