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】 很高兴认识你!加入我们共同进步!

目录
相关文章
|
Ubuntu Linux
【Ubuntu18.04 解决蓝牙wifi 之ax201无线网卡驱动安装】
【Ubuntu18.04 解决蓝牙wifi 之ax201无线网卡驱动安装】
1944 0
|
2月前
|
并行计算 PyTorch TensorFlow
Ubuntu安装笔记(一):安装显卡驱动、cuda/cudnn、Anaconda、Pytorch、Tensorflow、Opencv、Visdom、FFMPEG、卸载一些不必要的预装软件
这篇文章是关于如何在Ubuntu操作系统上安装显卡驱动、CUDA、CUDNN、Anaconda、PyTorch、TensorFlow、OpenCV、FFMPEG以及卸载不必要的预装软件的详细指南。
4992 3
|
2月前
|
并行计算 Ubuntu 算法
Ubuntu18 服务器 更新升级CUDA版本 pyenv nvidia ubuntu1804 原11.2升级到PyTorch要求12.1 全过程详细记录 apt update
Ubuntu18 服务器 更新升级CUDA版本 pyenv nvidia ubuntu1804 原11.2升级到PyTorch要求12.1 全过程详细记录 apt update
123 0
|
4月前
|
Ubuntu
简单几步实现Ubuntu22.04启用Nvidia显卡
本文是关于如何在Ubuntu 22.04操作系统上启用Nvidia显卡的教程,包括禁用旧驱动、添加新驱动源、安装推荐驱动、重启系统以及通过Nvidia设置更改为高性能模式的步骤。
1153 0
简单几步实现Ubuntu22.04启用Nvidia显卡
|
6月前
|
Ubuntu Linux
【问题复盘】在Ubuntu 20.04下安装OFED驱动 复盘:在Ubuntu 20.04下安装OFED驱动
整个问题主要是由于不同的内核版本导致文件路径不同,进而导致安装过程中某些库无法按预期安装而出现问题。 为什么使用最新的OFED驱动解决了问题呢?推测是最新驱动补充了之前缺失的某些文件,因此后续安装过程能够正常进行。 例如,在OFED 5.4中,某个安装所需的文件F位于A处,但安装程序却在B处查找该文件,导致报错。而在OFED 5.8中,该安装所需的文件F被移回到B处,此时不管去哪里查找都能找到文件F,因此安装可以正常进行。
300 0
|
6月前
|
JavaScript Ubuntu 前端开发
Ubuntu部署Minio(单机单驱动)
Ubuntu部署Minio(单机单驱动)
90 0
|
7月前
|
并行计算 Ubuntu
ubuntu彻底卸载Nvidia显卡驱动
ubuntu彻底卸载Nvidia显卡驱动
630 4
|
开发工具 Docker 异构计算
ubuntu18 安装 gpu 和 docker 驱动
ubuntu18 安装 gpu 和 docker 驱动
160 0
|
Ubuntu Java 关系型数据库
Ubuntu下python安装mysqldb(驱动)
先跳转的该目录下,然后执行 sudo python setup.py install 然后就是各种问题,需要配置这个那个的。
142 0
|
编解码 Ubuntu
系统类配置(六) ubuntu16.04命令行安装Nvidia显卡驱动(操作指令详细注释版)
系统类配置(六) ubuntu16.04命令行安装Nvidia显卡驱动(操作指令详细注释版)
240 0