问题解决
终端输入: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.
Ubuntu20.04的系统,之前使用nvidia-smi就出来详细显卡信息了,但是过了段时间,再使用指令就出现这样的提示,重启之后还是这样。
经过查找资料和实践验证,最后确定是:
是内核版本更新的问题,导致新版本内核和原来显卡驱动不匹配
解决:
查看已安装内核
dpkg --get-selections |grep linux-image