系统:Ubuntu18.04。
在tty模式中正常安装NVIDIA驱动发现报错,报错信息如下:
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.
解决方式:关闭所有装置,并停止载入NVIDIA驱动程序:
sudo systemctl isolate multi-user.target
sudo modprobe -r nvidia-drm
这个解决方法在非tty,linux图形界面的情况下一样适用,只不过第一个命令会直接从图形界面进入到tty界面。