Linux: Ubuntu18.04安装NVIDIA官方闭源驱动
1、删除低版本驱动
sudo apt purge nvidia*
2、把显卡驱动加入PPA
sudo add-apt-repository ppa:graphics-drivers
sudo apt update
3、查找适合自己的闭源驱动
ubuntu-drivers devices
回显如下:
test@lamsfun:~/download$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C82sv000010DEsd000011BFbc03sc00i00
vendor : NVIDIA Corporation
model : GP107 [GeForce GTX 1050 Ti]
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-435 - distro non-free
driver : nvidia-driver-415 - third-party free
driver : nvidia-driver-410 - third-party free
driver : nvidia-driver-440 - third-party free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
4、选择最新推荐的版本安装
sudo apt install nvidia-driver-440
5、重启系统
sudo reboot