当前位置: 首页 > news >正文

debianubuntu的nvidia驱动升级

背景

给出的机器的驱动版本不符合要求,使用自定义的驱动版本。

前置

如果使用nvidia官方的.run安装的驱动包,可以使用系统自带的nvidia-uninstall命令卸载比较方便,不建议使用apt pruge nvidia-*命令删除。会带来其他的问题。

卸载完成之后重启一下机器,验证两个问题

  1. 没有软件使用nvida-driver
  2. 内核模块没有被加载

否则后面安装会有一些报错

验证

lsof /dev/nvidia*

把正在使用nvidia的软件停止或者卸载。

lsmod |grep nvidia

预期结果:输出为空。
如果不是空,比如下面这种输出,确认没有软件使用nvidia之后,重启一下系统。手动使用rmmod module_name删除内核模块不推荐。

nvidia_uvm           1511424  0
nvidia_drm             90112  0
nvidia_modeset       1331200  1 nvidia_drm
drm_kms_helper        217088  4 cirrus,nvidia_drm
nvidia              56201216  2 nvidia_uvm,nvidia_modeset
drm                   548864  5 drm_kms_helper,nvidia,cirrus,nvidia_drm

安装

从官网下载.run的驱动包,赋予执行权限,安装。

遇到的报错

ERROR: An NVIDIA kernel module ‘nvidia-uvm’ appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occurred that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to reboot your computer.

ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

The nvidia-installer program was found on this system. This is probably left over from an earlier installation of the non-free NVIDIA graphics driver, installed using the NVIDIA *.run file directly. This installation is incompatible with the Debian packages. To install the Debian packages safely, it is therefore necessary to undo the changes performed by nvidia-installer

apt安装时报错FCAE110B1118213C没有这个key

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCAE110B1118213C

refer

nvidia驱动下载地址
https://www.nvidia.com/Download/index.aspx?lang=en-us
驱动文档
https://docs.nvidia.com/datacenter/tesla/index.html

相关文章:

  • unity 2d 入门 飞翔小鸟 下坠功能且碰到地面要停止 刚体 胶囊碰撞器 (四)
  • APM Server监控
  • cs制作木马和钓鱼邮件
  • C实现的双向链表队列
  • 【Docker】Swarm的ingress网络
  • (分类)KNN算法- 参数调优
  • TimeGPT:时间序列预测模型实例
  • 「Swift」取消UITableView起始位置在状态栏下方开始
  • 10、外观模式(Facade Pattern,不常用)
  • Docker容器中的OpenCV:轻松构建可移植的计算机视觉环境
  • 网站提示不安全?
  • vue.js el-table 动态单元格列合并
  • 【改进YOLOv8】融合高效网络架构 CloAtt的焊缝识别系统
  • Linux下Redis安装及配置
  • 好用免费的AI换脸5个工具
  • $translatePartialLoader加载失败及解决方式
  • 【跃迁之路】【444天】程序员高效学习方法论探索系列(实验阶段201-2018.04.25)...
  • eclipse(luna)创建web工程
  • exif信息对照
  • JS进阶 - JS 、JS-Web-API与DOM、BOM
  • Netty 4.1 源代码学习:线程模型
  • Node.js 新计划:使用 V8 snapshot 将启动速度提升 8 倍
  • PHP变量
  • React的组件模式
  • ucore操作系统实验笔记 - 重新理解中断
  • vagrant 添加本地 box 安装 laravel homestead
  • windows下mongoDB的环境配置
  • 阿里云爬虫风险管理产品商业化,为云端流量保驾护航
  • 程序员该如何有效的找工作?
  • 大主子表关联的性能优化方法
  • 前端
  • 浅谈JavaScript的面向对象和它的封装、继承、多态
  • 什么软件可以剪辑音乐?
  • 使用Envoy 作Sidecar Proxy的微服务模式-4.Prometheus的指标收集
  • 一、python与pycharm的安装
  • 一些css基础学习笔记
  • Oracle Portal 11g Diagnostics using Remote Diagnostic Agent (RDA) [ID 1059805.
  • ​MySQL主从复制一致性检测
  • #### go map 底层结构 ####
  • $ is not function   和JQUERY 命名 冲突的解说 Jquer问题 (
  • (CPU/GPU)粒子继承贴图颜色发射
  • (第61天)多租户架构(CDB/PDB)
  • (二)JAVA使用POI操作excel
  • (二)学习JVM —— 垃圾回收机制
  • (分享)一个图片添加水印的小demo的页面,可自定义样式
  • (经验分享)作为一名普通本科计算机专业学生,我大学四年到底走了多少弯路
  • (全注解开发)学习Spring-MVC的第三天
  • (深度全面解析)ChatGPT的重大更新给创业者带来了哪些红利机会
  • (十三)Java springcloud B2B2C o2o多用户商城 springcloud架构 - SSO单点登录之OAuth2.0 根据token获取用户信息(4)...
  • (贪心) LeetCode 45. 跳跃游戏 II
  • (文章复现)基于主从博弈的售电商多元零售套餐设计与多级市场购电策略
  • (一)C语言之入门:使用Visual Studio Community 2022运行hello world
  • (转)GCC在C语言中内嵌汇编 asm __volatile__
  • ***通过什么方式***网吧
  • *++p:p先自+,然后*p,最终为3 ++*p:先*p,即arr[0]=1,然后再++,最终为2 *p++:值为arr[0],即1,该语句执行完毕后,p指向arr[1]