ubuntu16.04安装nvidia驱动
配置中科大数据源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse |
更新
sudo apt update
查看驱动
ubuntu-drivers devices
cz@ubuntu:~/图片$ ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == vendor : NVIDIA Corporation modalias : pci:v000010DEd000024B0sv0000103Csd000014ADbc03sc00i00 driver : nvidia-driver-515 - distro non-free driver : nvidia-driver-510 - distro non-free driver : nvidia-driver-530 - distro non-free recommended driver : xserver-xorg-video-nouveau - distro free builtin driver : nvidia-driver-525-server - distro non-free driver : nvidia-driver-515-server - distro non-free driver : nvidia-driver-525 - distro non-free driver : nvidia-driver-470-server - distro non-free driver : nvidia-driver-470 - distro non-free |
安装驱动
sudo apt-get install nvidia-driver-470
记录下对应的下载链接,本帖没有用到
NVIDIA-Linux-x86_64-470.182.03.run
nvidia.cn/content/DriverDownloads/confirmation.php?url=/tesla/470.182.03/NVIDIA-Linux-x86_64-470.182.03.run&lang=cn&type=Tesla
补充
这里推荐用命令行安装,官方的安装包会有黑屏、无法进桌面的问题
经操作,不需要关闭nouveau驱动、x server,通过命令安装就可成功