ERROR: An NVIDIA kernel module ‘nvidia-drm‘ appears to already be loaded in your kernel.

安装显卡驱动时报错:
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 occured that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to reboot your computer.

解决方法:
https://blog.csdn.net/xunan003/article/details/81665835

CUDA Installation

  1. Download the latest CUDA Toolkit

  2. Switch to tty3 by pressing Ctl+Alt+F3

  3. Unload nvidia-drm before proceeding.

3a) Isolate multi-user.target

sudo systemctl isolate multi-user.target
3b) Note that nvidia-drm is currently in use.

lsmod | grep nvidia.drm
3c) Unload nvidia-drm

sudo modprobe -r nvidia-drm
4d) Note that nvidia-drm is not in use anymore.

lsmod | grep nvidia.drm
5) Go to your download folder and run the cuda installation.

sudo sh cuda_10.1.168_418.67_linux.run
6) Answer any prompts during installation.

  1. When installation has finished, confirm that the CUDA Version has been updated.

nvidia-smi
8) Start the GUI again.

sudo systemctl start graphical.target

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值