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

nvidia驱动升级-ubuntu 1804

升级

1.从官网下载*.run驱动文件
2.卸载原始驱动

sudo /usr/bin/nvidia-uninstall
sudo apt-get --purge remove nvidia-\*   # 可能不需要加-\
sudo apt-get purge nvidia-\*                  # 可能不需要加-\
sudo apt-get purge libnvidia-\*              # 可能不需要加-\
sudo apt-get autoremove                     # 可能不需要或执行失败

3.关闭进程

sudo systemctl isolate multi-user.target
sudo modprobe -r nvidia-drm

3.1关闭自启动gpu服务
4.重启服务器

reboot

5.安装驱动

sh *.run

5.1安装成功后,开启自启动gpu服务
6.重启服务器

—或者直接执行

./Tesla-V100-NVIDIA-Linux-x86_64-535.183.06.run -no-x-check

进行覆盖安装,若提醒有程序占用,则关闭/etc/rc.local中的启动项,重启服务器再进行安装。

安装过程提示:Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if your kernel changes later.您要向DKMS注册内核模块源代码吗?如果您稍后更改了内核,这将允许DKMS自动构建新模块。 可选择No。

异常处理:

0.需要先卸载之前的驱动:
1.报内核不匹配

apt install linux-headers-generic

2.sh RTX8000-NVIDIA-Linux-x86_64-535.129.03.run 安装GPU驱动报错:

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. 

3.执行

bash RTX8000-NVIDIA-Linux-x86_64-535.129.03.run

4.重启

rebbot

相关文章:

  • 系统架构设计师—数据库基础篇—关系代数运算
  • FreeRTOS 任务管理与运行时间统计:API 解析与配置实践
  • SQLAlchemy系列教程:集成Pydantic增强数据处理能力
  • 7.自然语言处理(NLP)理论基础——大模型微调的基石
  • 【蓝桥杯集训·每日一题2025】 AcWing 5539. 牛奶交换 python
  • C语言番外篇(4)------------------>VS环境下源码的隐藏
  • Dify部署踩坑指南(Windows+Mac)
  • Spring Boot 项目中 Redis 常见问题及解决方案
  • 常见的限流算法有哪些?
  • 社区智慧养老标准规范全解析
  • Java停车平台高并发抢锁技术方案设计 - 慧停宝开源停车管理平台
  • C语言番外篇(5)-------------->作用域与生命周期
  • 基于ANTLR4的大数据SQL编辑器解析引擎实践|得物技术
  • aws(学习笔记第三十一课) aws cdk深入学习(batch-arm64-instance-type)
  • 贪心算法一
  • python实现的生态模拟系统
  • 第5章:vuex
  • Linux部署java项目
  • NO.26十六届蓝桥杯备战|字符数组七道练习|islower|isupper|tolower|toupper|strstr(C++)
  • 支持多数据源的 MyBatis-Plus 实现
  • 越南前国家主席陈德良因病去世
  • 深一度|拿下队史首冠的广厦,改变的不只是辽粤争霸的格局
  • 巴基斯坦一校车发生爆炸,已造成5名儿童死亡38人受伤
  • 国家外汇管理局:4月货物贸易项下跨境资金净流入649亿美元
  • 媒体报道一民企投资400万运营出租车4年未获批,广西隆林县回应
  • 沧州盐碱地“逆天改命”:无用之地变良田,候鸟翔集水草丰美