ubuntu 16.04 安装nvidia驱动
先在官网上下载对应的包
sudo apt-get install linux-source
uname -r
sudo apt-get install linux-headers-4.15.0-118-generic
sudo chmod a+x ./NVIDIA-Linux-x86_64-450.57.run
sudo ./NVIDIA-Linux-x86_64-450.57.run -no-x-check -no-nouveau-check -no-opengl-files
sudo apt-get install dkms
sudo dkms install -m nvidia -v 450.57
sudo mokutil --disable-validation
输入修改密码后重启,点击任意键,禁用Secure boot,这时输入对应的是密码的第几位
sudo dkms install -m nvidia -v 450.57
sudo nvidia-smi
或者参考 https://blog.csdn.net/xunan003/article/details/81665835