https://blog.csdn.net/smcaa/article/details/86482872
查看GPU:
nvidia –smi
查看、安装驱动:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update(更新)
ubuntu-drivers devices 显示驱动版本(推荐的版本)
sudo ubuntu-drivers autoinstall (自动安装推荐版本)
重启后查看:nvidia –smi即可。
显示显卡型号:(上行代码也有显示)
lspci | grep -i nvidia
显示内核版本号:
uname -sr
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
报错是因为显卡驱动和系统内核版本(?)不一样。
选择推荐款
nvidia-driver
显卡版本:GeForce GTX 745