解决nvidia驱动 安装 报‘nvidia-drm‘问题

参考该博文  https://blog.csdn.net/fdqw_sph/article/details/78745375

一台ubuntu 16.04 机器重装显卡驱动,

查看linux 版本内核  uname -a

进入对应内核路径

cd /lib/modules/4.4.0-83-generic/kernel/drivers/gpu/drm/nouveau 
sudo rm -rf nouveau.ko 
sudo rm -rf nouveau.ko.org

仍报如下错 

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.

于是 cd /lib/modules 目录下 ,找了下 内核版本--generic/kernel/drivers/gpu/drm/nouveau

存在 nouveau.ko  nouveau.ko.org

执行

sudo rm -rf nouveau.ko

sudo rm -rf nouveau.ko.org  

后重启,可以正常安装显卡驱动

 

你可能感兴趣的:(linux)