马春杰杰 Exit Reader Mode

unable to load the nvidia-drm kernel module

出现原因:

使用run文件已经安装驱动前提下,重新使用apt安装了一遍,导致登陆无限循环以及无法使用GPU。

如果出现下面这个,是因为目前有图形界面在使用,关闭即可。

 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.

然后安装的时候,最后就会出现“unable to load the “nvidia-drm” kernel module”

解决:

sudo apt-get purge nvidia*

sudo apt-get autoremove

这样一般是可以解决,如果这样没有解决,那就把drm模块卸载了。

sudo modprobe -r nvidia-drm

systemctl isolate multi-user.target

systemctl start graphical.target

如果还不行,安装一下其他依赖:

sudo apt-get install linux-source nvidia-prime ubuntu-drivers-common 

然后,安装之后:sudo prime-select nvidia

祝大家顺利。

噢,对了,安装的时候大家可以选择这个命令:

sudo ./NVIDIA-Linux-x86_64-390.138.run -no-x-check -no-opengl-files

另外,还有一种可能:

本文最后更新于2020年12月19日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!