ERROR: An NVIDIA kernel module 'nvidia-uvm' appears to already be loaded in your kernel
安装nvidia驱动报错:ERROR: An NVIDIA kernel module ‘nvidia-uvm’ appears to already be loaded in your kernel
1.报错信息
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 us
ing the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your k
ernel supports module unloading, and you still receive this message, then an error may have occurred that has corrup
ted an NVIDIA kernel module's usage count, for which the simplest remedy is to reboot your computer.
2.查看内核模块
# lsmod | grep nvidia
nvidia_uvm 995356 2
nvidia_drm 53134 0
nvidia_modeset 1195268 1 nvidia_drm
nvidia 35237551 14 nvidia_modeset,nvidia_uvm
drm_kms_helper 179394 2 i915,nvidia_drm
drm 429744 5 i915,drm_kms_helper,nvidia,nvidia_drm
3.卸载相应模块,报错
# rmmod nvidia_uvm
rmmod: ERROR: Module nvidia_uvm is in use
4.查看并结束相应进程
# lsof /dev/nvidia*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sbatchd 3680 root 5u CHR 195,255 0t0 56434 /dev/nvidiactl
sbatchd 3680 root 6u CHR 237,0 0t0 52212 /dev/nvidia-uvm
sbatchd 3680 root 7u CHR 195,0 0t0 54226 /dev/nvidia0
sbatchd 3680 root 8u CHR 195,0 0t0 54226 /dev/nvidia0
sbatchd 3680 root 9u CHR 195,0 0t0 54226 /dev/nvidia0
# kill -9 3680
5.卸载相应模块,重新安装
#./NVIDIA-Linux-x86_64-515.57.run --no-opengl-files
转载自:安装nvidia驱动报错 ∠(°ゝ°)