报错:NVIDIA_SMI has failed because it couldn’t communicate with the NVIDIA driver,解决方案
1)卸载旧驱动
sudo apt-get remove nvidia-*
2)安装驱动
加入PPA,然后更新库
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
查看适合的NVIDIA驱动
ubuntu-drivers devices
选择合适版本并安装
sudo apt-get install nvidia-driver-xxx nvidia-settings nvidia-prime
输入nvidia-smi查看是否能读取到安装的驱动,没有提示则重启后再试