NVIDIA显卡驱动重新安装(记录)
问题
用ssh连接服务器时,使用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
于是按照提示重装显卡驱动
-
下载好对应版本的显卡驱动.run文件
-
关闭X-Window服务
sudo service lightdm stop
-
执行安装命令(注意:–no-opengl-files一定要附上,不然可能出现问题)
sudo bash ./NVIDIA-Linux-x86_64-430.40.run --no-opengl-files
-
进入安装界面:
正常选择yes或ok一路跳过即可,遇到这个选项:Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
选择yes
-
完成安装后开启X-Window服务
sudo service lightdm start
输入命令nvidia-smi验证是否安装成功
安装完成!