ubuntu-drivers devices没有输出

操作系统:Ubuntu16.04

查看驱动版本

ubuntu-drivers devices

执行命令后,没有输出。

解决办法:

  由于Ubuntu默认sources源很多软件包版本比较老旧、下载速度比较有限,所以建议更新sources源以便后续软件包的安装。更新sources源后解决没有输出问题。

注意:不同的Ubuntu型号,sources源会有不同,搜索替换源的时候要根据自己的Ubuntu型号进行替换。

1、备份源文件,先将原始的sources.list进行备份。

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2、使用vim新建一个源文件sources.list,然后将以下内容全部复制到文件中

复制代码
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
 
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
 
 
 
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
 
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
 
 
 
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
 
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
 
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
 
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
 
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
 
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
 
复制代码

3、命令终端使用apt命令更新下源。

sudo apt update

4.更新完成后输入

ubuntu-drivers devices
显示版本信息,使用recommended版本
sudo apt-get install nvidia-driver-510-server

 

posted @   runzhao  阅读(6766)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· Vue3状态管理终极指南:Pinia保姆级教程
点击右上角即可分享
微信分享提示