Ubuntu系统18.04更新驱动解决方法

原始是:ubuntu18.04里面的驱动是470,对应cuda11.4

现在需要更新为525,对应cuda为12.0

实现:

1、打开终端

c 复制代码
Ctrl + Alt + T

2、使用 lspci 命令(快速查看显卡型号)

c 复制代码
lspci | grep -i vga

3、终端输入

c 复制代码
ubuntu-drivers devices

提示

c 复制代码
WARNING:root:_pkg_get_support nvidia-driver-525: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-530: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-525-server: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-510: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-515: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-515-server: package has invalid Support PBheader, cannot determine support level
== /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0 ==
modalias : pci:v000010DEd00002560sv000017AAsd00003A80bc03sc00i00
vendor   : NVIDIA Corporation
manual_install: True
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-525 - distro non-free
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-530 - distro non-free
driver   : nvidia-driver-525-server - distro non-free
driver   : nvidia-driver-510 - distro non-free
driver   : nvidia-driver-515 - distro non-free
driver   : nvidia-driver-515-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

== /sys/devices/pci0000:00/0000:00:02.2/0000:04:00.0 ==
modalias : pci:v00008086d00002723sv00008086sd00000080bc02sc80i00
vendor   : Intel Corporation
manual_install: True
driver   : backport-iwlwifi-dkms - distro free

解决办法

终端提示推荐下载nvidia-driver-525

终端输入:

c 复制代码
sudo apt install nvidia-driver-525

经过一系列的处理之后,安装完成后,重启系统使驱动生效:

c 复制代码
sudo reboot

重启之后,验证驱动是否安装成功

c 复制代码
nvidia-smi
相关推荐
2501_920047037 分钟前
Linux-搭建DNS服务器
linux·运维·服务器
Childecool17 分钟前
网络编程(2)—多客户端交互
linux·服务器·网络
夏沫mds1 小时前
【基于hyperledger fabric的教育证书管理系统】
运维·go·vue·区块链·gin·fabric
YoungUpUp1 小时前
【电子设计自动化(EDA)】Altium Designer25——电子设计自动化(EDA)软件版保姆级下载安装详细图文教程(附安装包)
运维·设计模式·fpga开发·自动化·eda·电路仿真·电子设计自动化
搞不懂语言的程序员1 小时前
docker 搭建zookper集群,快照虚拟机多机模拟
运维·docker·容器
大熊程序猿1 小时前
PDF转图片工具实现
linux·运维·pdf
阿巴~阿巴~1 小时前
Socket编程核心API与结构解析
运维·服务器·网络
凯子坚持 c2 小时前
Claude Code 完整手册:从入门、配置到高级自动化
运维·自动化·excel·claude code
1白天的黑夜12 小时前
Linux(0)|梦开始的地方:xshell下载
linux·服务器·centos
科技小郑7 小时前
吱吱企业通讯软件以安全为基,搭建高效的通讯办公平台
大数据·运维·网络·安全·吱吱企业通讯