遇到一個莫名其妙的問題:
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驅動(非cuda)
首先在官網下載你自己顯卡對應的驅動NVIDIA-Linux-x86_64-xxx.xx.run
,拷貝到Linux某個目錄後先改權限
chomod 777 NVIDIA-Linux-x86_64-xxx.xx.run
卸載原驅動
sudo apt-get remove --purge nvidia* # 提示有殘留可以接 sudo apt autoremove
臨時關閉顯示服務
sudo service lightdm stop
運行安裝程序
sudo ./NVIDIA-Linux-x86_64-390.77.run
安裝後再重啓顯示
sudo service lightdm start