ubuntu安装nvidia驱动

一、安装前准备

sudo apt update
sudo apt install build-essential -y

二、查看驱动推荐

$ ubuntu-drivers devices

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00002520sv00001043sd0000141Cbc03sc00i00
vendor   : NVIDIA Corporation
driver   : nvidia-driver-470 - distro non-free
driver   : nvidia-driver-510 - distro non-free recommended
driver   : nvidia-driver-470-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

可以看到给我推荐的是nvidia-driver-510

三、自动安装推荐版本驱动

sudo ubuntu-drivers autoinstall

四、指定版本安装

如果推荐版本不符合需求,可以指定版本安装

sudo apt install aptitude -y
sudo aptitude install nvidia-driver-510

你可能感兴趣的:(Linux,ubuntu,linux,运维)