#下载驱动
shell>wget https://us.download.nvidia.com/XFree86/Linux-x86_64/470.94/NVIDIA-Linux-x86_64-470.94.run
#禁用nouveau,打开文件,在最后添加如下两行
shell>vim /etc/modprobe.d/blacklist.conf
blacklist nouveau
options nouveau modeset=0
#更新系统修改
shell>update-initramfs -u
#重启操作系统
shell>reboot
#验证nouveau是否已禁用,如果没有出现任何东西就是成功了。
shell>lsmod | grep nouveau
#关闭图形界面,必须关闭
shell>service lightdm stop
#卸载系统中存在的驱动,默认有安装的,一定要执行这个
shell>apt-get remove nvidia-*
#给文件权限
shell>chmod a+x NVIDIA-Linux-x86_64-470.86.run
#运行驱动文件,参考 https://www.cnblogs.com/lixinliang/p/14705315.html
shell>bash NVIDIA-Linux-x86_64-470.86.run
#安装过程中出现的问题以及解决方法
1、he distribution-provided pre-install script failed! Are you sure you want to continue? 选择 yes 继续
2、Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later? 选择NO继续
3、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 继续