当前位置: 首页 > 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

http://www.lryc.cn/news/254803.html

相关文章:

  • 【开源视频联动物联网平台】视频接入网关的用法
  • 【bug排查解决】现象级延迟8-10s
  • 【人生感悟】不能对一个人太好是有心理学原理的
  • 动态规划学习——最长回文子序列,让字符串变成回文串的最小插入次数
  • CSS新手入门笔记整理:CSS列表样式
  • 12月07日,每日信息差
  • spring mvc理解
  • HTML-标签之文字排版、图片、链接、音视频
  • 圣诞将至—C语言圣诞树代码来啦
  • Git常用命令#merge分支合并
  • Windows server 2019 域环境部署
  • Cocos Creator加入图片没有被识别
  • java double类型保留两位小数并去除后面多余的0
  • C++学习寄录(九.多态)
  • 【Linux基础开发工具】yum生态vim的配置与使用
  • java-HashMap、TreeMap、LinkedHashMap、ArrayList、LinkedList使用笔记
  • Oracle中mybatis批量更新报错ORA-00933:SQL命令未正确结束
  • Mysql综合案例练习<1>
  • Linux系统编程:线程总结
  • activemq启动成功但web管理页面却无法访问
  • 【Flink on k8s】- 0 - Flink kubernetes operator 快速入门与实战
  • 毕设:《基于hive的音乐数据分析系统的设计与实现》
  • PHP使用HTTP代码示例模板
  • 头歌题目-数组
  • C++ vector基本操作
  • 使用SLS日志服务采集Kong网关的日志
  • TA-Lib学习研究笔记(九)——Pattern Recognition (1)
  • 基于GAN的多尺度门合并多模态MRI图像合成
  • 浅谈https
  • 计算两个结构的差