1.Adding this PPA to your system
You can update your system with unsupported packages from this untrusted PPA by adding ppa:graphics-drivers/ppa to your system’s Software Sources.
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
2.查看可安装的驱动
ubuntu-drivers devices
3.安装驱动
sudo apt install nvidia-driver-435
4.完成
测试nvidia-smi、nvidia-settings工具