然后,再执行下令sudo ubuntu-drivers autoinstall
2.安装完成后使用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 reboot重启服务器
离线安装(推荐)
1)进入英伟达官网,输入服务器信息搜索合适驱动
2)选择合适驱动下载(可选择 ubuntu-drivers devices推荐版本)
3)在安装驱动前,需要安装一些相关依赖:
sudo apt-get install gcc
sudo apt-get install make
4)先给驱动.run文件赋予执行权限,然后执行