当前位置: 首页> 财经> 股票 > 解决nvidia驱动和CUDA升级问题

解决nvidia驱动和CUDA升级问题

时间:2025/7/11 14:37:38来源:https://blog.csdn.net/weixin_32393347/article/details/139519676 浏览次数:0次

解决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 # 执行升级脚本
···

在这里插入图片描述

关键字:解决nvidia驱动和CUDA升级问题

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: