当前位置: 首页>>技术教程>>正文


如何在Ubuntu 16.04 Xenial Xerus上安装最新的Nvidia驱动程序

, ,
以下教程将指导您完成在Ubuntu 16.04 Xenial Xerus Linux上安装VGA NVIDIA驱动程序所需的所有步骤。

要在其他Linux发行版上安装Nvidia驱动程序,请遵循我们的Nvidia Linux驱动程序指南。

让我们开始检测您的NVIDIA VGA卡型号。打开终端并输入以下内容linux命令


$  lshw -numeric -C display
or
$ lspci -vnn | grep VGA

上面的命令将输出您的NVIDIA型号。例如:


$ lspci -vnn | grep VGA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104 [GeForce GTX 680] [10de:1180] (rev a1) (prog-if 00 [VGA controller])

该系统使用的模型是GeForce GTX 680。在下一步中,我们将使用此信息在Ubuntu的软件包存储库中找到正确的NVIDIA驱动程序。但是,在此之前,请浏览器导航到NVDIA驱动程序搜索页面并输入您的详细信息:NVIDIA search driver page成功搜索后,记下产生的驱动程序版本号:


Version: 	361.42
Release Date: 	2016.3.30
Operating System: 	Linux 64-bit
Language: 	English (US)
File Size: 	82.74 MB 



驱动程序版本号为361.42。根据基于上述搜索的相关NVIDIA驱动程序编号,使用以下命令直接从Ubuntu存储库安装实际的NVIDIA驱动程序:apt-get命令:


VERSION: 304
$ sudo apt-get install nvidia-304
VERSION: 340
$ sudo apt-get install nvidia-340
VERSION: 361
$ sudo apt-get install nvidia-361
...
Done.

nvidia_361:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-18-generic/updates/dkms/

nvidia_361_modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-18-generic/updates/dkms/

nvidia_361_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-18-generic/updates/dkms/

depmod........

DKMS: install completed.
Setting up ocl-icd-libopencl1:amd64 (2.2.8-1) ...
Setting up nvidia-opencl-icd-361 (361.42-0ubuntu1) ...
Setting up bbswitch-dkms (0.8-3ubuntu1) ...
Loading new bbswitch-0.8 DKMS files...
First Installation: checking all kernels...
Building only for 4.4.0-18-generic
Building initial module for 4.4.0-18-generic
Done.

bbswitch:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-18-generic/updates/dkms/

depmod....

DKMS: install completed.
Setting up nvidia-prime (0.8.2) ...
Setting up screen-resolution-extra (0.17.1) ...
Setting up nvidia-settings (361.42-0ubuntu1) ...
Setting up vdpau-driver-all:amd64 (1.1.1-3ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu2) ...
Processing triggers for initramfs-tools (0.122ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-18-generic
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for dbus (1.10.6-1ubuntu3) ...

现在您可以重新引导系统了。重新启动后,您可以使用“开始”按钮并搜索来访问NVIDIA的配置菜单。nvidiaNVIDIA configuration menu

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/10118.html,未经允许,请勿转载。