ubuntu16在Y7000P系统下安装显卡驱动

1 参考链接

How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux

2 开始安装

2.1 :第一种方法(有些毛病)

安装前注意:
-------------》》我按照安装之后,发现不能够正常输入密码开机,然后我回到windows系统下面把windows系统下面的显卡模式从独显模式切换混合模式之后(Y7000P电脑的功能,bios切换我没试过),可以在ubuntu系统下输入密码开机了。

首先看看自己Ubuntu内核支持到哪个版本的驱动
sudo apt-cache search nvidia*

sudo apt-cache search nvidia*

出现下面的输出

libcuda1-384 - NVIDIA CUDA runtime library
nvidia-304 - NVIDIA legacy binary driver - version 304.135
nvidia-304-updates - Transitional package for nvidia-304
nvidia-304-updates-dev - Transitional package for nvidia-304-dev
nvidia-340 - NVIDIA binary driver - version 340.107
nvidia-361 - Transitional package for nvidia-367
nvidia-361-dev - Transitional package for nvidia-367-dev
nvidia-367 - Transitional package for nvidia-375
nvidia-367-dev - Transitional package for nvidia-375-dev
nvidia-375 - Transitional package for nvidia-384
nvidia-375-dev - Transitional package for nvidia-384-dev
nvidia-384 - NVIDIA binary driver - version 384.130
nvidia-384-dev - NVIDIA binary Xorg driver development files
nvidia-libopencl1-367 - Transitional package for nvidia-libopencl1-375
nvidia-opencl-icd-304-updates - Transitional package for nvidia-opencl-icd-304
nvidia-opencl-icd-361 - Transitional package for nvidia-opencl-icd-367
nvidia-opencl-icd-367 - Transitional package for nvidia-opencl-icd-375
nvidia-opencl-icd-384 - NVIDIA OpenCL ICD
nvidia-libopencl1-304-updates - Transitional package for nvidia-libopencl1-304
nvidia-libopencl1-361 - Transitional package for nvidia-libopencl1-367
nvidia-libopencl1-375 - Transitional package for nvidia-libopencl1-384
nvidia-libopencl1-384 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-opencl-icd-375 - Transitional package for nvidia-opencl-icd-384
python3-rocker - A tool to run docker containers with customized extras

例如我的是最高支持到nvidia-384的(nvidia-384 - NVIDIA binary driver - version 384.111)

$ ubuntu-drivers devices
$ sudo ubuntu-drivers autoinstall
或者
sudo apt install nvidia-384

搞定


2.2第二种(推荐这一种)

卸载驱动

sudo apt-get --purge remove nvidia*
sudo apt autoremove

更新源

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update

查看驱动

~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00002191sv000017AAsd00003FFCbc03sc00i00
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-430 - third-party free recommended

安装

$ ubuntu-drivers devices
$ sudo ubuntu-drivers autoinstall
或者
sudo apt install nvidia-430

搞定

重启

3 其他参考(过程中命令有参考)

Ubuntu18.04安装nvidia显卡驱动

【只找型号,其他不看】
Ubuntu16.04LTS安装Nvidia显卡驱动+cuda8.0+cudnn

你可能感兴趣的:(ubuntu)