由于未知原因, 显卡驱动丢失, 采用 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.

​ 解决方案一:

参考: 无法连接NVIDIA驱动:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver

#查看已安装驱动版本号
ls /usr/src | grep nvidia
#如:nvidia--460.32.03

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

解决方案二:

重新安装驱动, 并重启.

sudo apt install nvidia-driver-460
sudo reboot
Last modification:January 23rd, 2021 at 02:54 pm