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-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.

安裝好驅動后,apt-get upgrade執行了一下。結果重啟驅動就不行了。

以為驅動壞了,卸載重裝也不頂事。最后找來找去這樣搞好了。

 

sudo apt install nvidia-cuda-toolkit

 

搞環境很瑣碎,是以為記。

 

重裝的步驟

 

1.卸載nvidia驅動
卸載NV驅動和安裝一樣,首先ctrl+Alt+F2進入命令行狀態,然后停止lightdm
sudo service lightdm stop
或者
sudo /etc/init.d/lightdm stop

卸載命令位置/usr/bin/nvidia-uninstall,以下命令即可卸載。
sudo /usr/bin/nvidia-uninstall
————————————————
然后重裝:

sudo ./cuda_10.0.130_410.48_linux.run

 

選 driver 和 nvidia X 這兩個。其他不選。

就安裝好了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM