问题描述 更新ubuntu内核版本后,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 解决办法 在终端输入以下命令解决: sudo ubuntu-drivers autoinstall 又一次遇到了之后,发现只要更新一下软件包就可以了: sudo apt update sudo apt upgrade