我需要升级我的nvidia驱动程序,以便我已经尝试运行NVIDIA-LInux-x86_64.run
文件
但是,我看到以下消息
ERROR: An NVIDIA kernel module 'nvidia' 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.
我已经卸载了nvidia-drm
,当我尝试卸载nvidia
时
$ sudo modprobe -r nvidia
modprobe: FATAL: Module nvidia is in use.
任何人都可以指导我安装这个新的驱动程序没有任何问题?
谢谢
3条答案
按热度按时间kse8i1jr1#
使用
lsof /dev/nvidia*
查找使用旧驱动程序的进程。在我的情况下,它是“nvidia-persistenced”。只需通过pid杀死进程,然后重试安装程序NVIDIA-***。运行nhhxz33t2#
我只是删除了现有的驱动程序并重新安装
ioekq8ef3#
我为此编写了python脚本:
unload_all_nvidia_modules.py
用法:
sudo python3 unload_all_nvidia_modules.py