解决nvidia驱动和CUDA升级问题

解决nvidia驱动和CUDA升级问题

注释:升级高版本的nvidia驱动和cuda是不影响现有的docker镜像和容器的。因为是向下兼容的。仅仅升级后重启服务器即可。

ERROR: An NVIDIA kernel module ‘nvidia-drm’ 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 modules usage count, for which the simplest remedy is to reboot your computer.

问题分析

应该是你的桌面显示器在使用显卡驱动 关闭即可。就可以升级显卡驱动和CUDA啦。

关闭步骤

···
$ sudo su # 使用root用户
$ systemctl isolate multi-user.target
$ modprobe -r nvidia-drm # unload 显卡驱动
$ sudo sh ./NVIDIA-Linux-x86_64-390.48.run # 执行升级脚本
···

在这里插入图片描述

相关推荐

  1. NVIDIA 驱动 CUDA 版本信息速查

    2024-06-12 00:12:03       26 阅读
  2. Ubuntu20.04安装CUDANvidia 4090显卡驱动

    2024-06-12 00:12:03       43 阅读
  3. Ubuntu22.04安装Nvidia 550驱动CUDA toolkit 12.4.1

    2024-06-12 00:12:03       12 阅读
  4. debian&ubuntu的nvidia驱动升级

    2024-06-12 00:12:03       27 阅读
  5. 英伟达(NVIDIACUDA

    2024-06-12 00:12:03       27 阅读
  6. 解决 Pytorch Cuda 版本不兼容问题

    2024-06-12 00:12:03       6 阅读

最近更新

  1. 地学类期刊最新CiteScore™ 汇总

    2024-06-12 00:12:03       0 阅读
  2. 怎么通过AI构架一个个人简介并且写出来

    2024-06-12 00:12:03       0 阅读
  3. C++240617

    C++240617

    2024-06-12 00:12:03      0 阅读
  4. 数据库修复实例2(副本出入口修复)

    2024-06-12 00:12:03       0 阅读
  5. Leetcode 415. 字符串相加-大数相加

    2024-06-12 00:12:03       0 阅读
  6. Docker使用心得

    2024-06-12 00:12:03       0 阅读
  7. 富格林:细心发现虚假确保安全

    2024-06-12 00:12:03       0 阅读

热门阅读

  1. 问题 B: 2.左右(lr.cpp/pas)

    2024-06-12 00:12:03       3 阅读
  2. Vue小细节

    2024-06-12 00:12:03       5 阅读
  3. VPN简介

    2024-06-12 00:12:03       4 阅读
  4. C语言与内存息息相关的重要概念有哪些?

    2024-06-12 00:12:03       4 阅读
  5. 超宽输送带的最适合的应用领域是什么

    2024-06-12 00:12:03       3 阅读
  6. 电影《禁闭岛》赏析

    2024-06-12 00:12:03       4 阅读
  7. 【LC刷题】DAY03:242 349 202 1

    2024-06-12 00:12:03       4 阅读