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
网上查找到的解决办法是:
ll /usr/src/ #查看驱动版本号
sudo apt-get install dkms
sudo dkms install -m nvidia -v 460.80 # 460.80是你的驱动版本号
但是我执行最后一行后提示:Module nvidia/460.80 already installed on kernel 5.xxx-xx-generic/x86_64
最后通过将BIOS中的Secure Boot改为Disabled解决问题!
华硕笔记本进入BIOS的方式是在开机前按F2(要快!),然后按F7进入高级设置,修改Secure Boot的状态即可。