显卡驱动报错:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.

使用nvidia-smi报错:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

这是一个常见问题,经常出现在ubuntu系统中,主要原因还是系统内核升级了,导致新版本内核和原来显卡驱动不匹配

解决方法:

1.切换为集成显卡

如果没有,那么先切换到字符界面

2.卸载驱动

sudo apt-get --purge remove nvidia*

sudo apt autoremove

To remove CUDA Toolkit:

$ sudo apt-get --purge remove "*cublas*" "cuda*"

To remove NVIDIA Drivers:

$ sudo apt-get --purge remove "*nvidia*"

3.重新安装驱动

1.切换为集成显卡

如果没有,那么先切换到字符界面

2.卸载驱动

sudo apt-get --purge remove nvidia*

sudo apt autoremove

To remove CUDA Toolkit:

$ sudo apt-get --purge remove "*cublas*" "cuda*"

To remove NVIDIA Drivers:

$ sudo apt-get --purge remove "*nvidia*"

3.重新安装nvidia驱动,然后重启电脑即可。

猜你喜欢

转载自blog.csdn.net/u013066730/article/details/114624782