ubuntu系统安装nvidia驱动

简介: ubuntu系统安装nvidia驱动
sudo apt install nvidia-387 nvidia-387-dev

遇到的错误:

1. [sudo] password for tmp: 
2. Reading package lists... Done
3. Building dependency tree       
4. Reading state information... Done
5. Package nvidia-387 is not available, but is referred to by another package.
6. This may mean that the package is missing, has been obsoleted, or
7. is only available from another source
8. 
9. E: Package 'nvidia-387' has no installation candidate
10. E: Unable to locate package nvidia-387-dev

解决方案: How to Install Latest Nvidia Drivers on Ubuntu

First start by adding the Proprietary GPU Drivers PPA to your system package sources and update your system package cache using apt command.

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

Then install the latest stable nvidia graphics (which is nvidia-387 at the time of writing this article) using the following command.

$ sudo apt install nvidia-387

Alternatively, open Software & Updates under System Settings and go to Additional Drivers tab, select the required driver version and click “Apply Changes”.

Next, reboot your computer for the new driver to start working. Then use the lsmod command to check your installation status with the following command.

It will list all currently loaded kernel modules in Linux, then filter only nvidia using grep command.

$ lsmod | grep nvidia

Some times updates do not work well as expected. If you face any issues with the latest drivers installation such as black screen on startup, you can remove it as follows.

$ sudo apt-get purge nvidia*

If you want to completely remove graphics-drivers PPA as well, run the following command to remove PPA.

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

You might also like to read these following related articles on Gaming.

  1. 5 Best Linux Gaming Distributions That You Should Give a Try
  2. 12 Amazing Terminal Based Games for Linux Enthusiasts

That’s all! You can ask questions or share any useful additional information via the feedback form below.


AIEarth是一个由众多领域内专家博主共同打造的学术平台,旨在建设一个拥抱智慧未来的学术殿堂!【平台地址:https://devpress.csdn.net/aiearth】 很高兴认识你!加入我们共同进步!

目录
相关文章
|
9月前
|
Ubuntu Linux
【Ubuntu18.04 解决蓝牙wifi 之ax201无线网卡驱动安装】
【Ubuntu18.04 解决蓝牙wifi 之ax201无线网卡驱动安装】
1083 0
|
8天前
|
并行计算 Ubuntu
ubuntu彻底卸载Nvidia显卡驱动
ubuntu彻底卸载Nvidia显卡驱动
26 4
|
5月前
|
开发工具 Docker 异构计算
ubuntu18 安装 gpu 和 docker 驱动
ubuntu18 安装 gpu 和 docker 驱动
120 0
|
7月前
|
Ubuntu Java 关系型数据库
Ubuntu下python安装mysqldb(驱动)
先跳转的该目录下,然后执行 sudo python setup.py install 然后就是各种问题,需要配置这个那个的。
57 0
|
9月前
|
编解码 Ubuntu
系统类配置(六) ubuntu16.04命令行安装Nvidia显卡驱动(操作指令详细注释版)
系统类配置(六) ubuntu16.04命令行安装Nvidia显卡驱动(操作指令详细注释版)
183 0
|
11月前
|
Ubuntu 异构计算
Ubuntu 18.04安装N卡驱动
Ubuntu 18.04安装N卡驱动
|
Ubuntu 编译器 Linux
Linux驱动开发笔记(三):基于ubuntu的helloworld驱动源码编写、makefile编写以及驱动编译加载流程测试
前面学习了驱动的基础框架,上一篇编译了gcc7.3.0,那么为了方便很好的熟悉流程,本篇,将使用ubuntu18.04,直接编译ubuntu18.04的驱动,然后做好本篇文章的相关实战测试。
|
并行计算 Ubuntu
UBUNTU正确安装NVIDIA驱动的方法
UBUNTU正确安装NVIDIA驱动的方法
226 0
解决办法:NVIDIA驱动,Ubuntu16.04 用户登录界面死循环
解决办法:NVIDIA驱动,Ubuntu16.04 用户登录界面死循环
130 0