Ubuntu16.04下nvidia-smi:command not found解決

利用命令查看安裝的內核:

dpkg --get-selections | grep linux | grep 91

發現少了前兩個。

linux-headers-4.15.0-91        install
linux-headers-4.15.0-91-generic      install
linux-image-4.15.0-91-generic      install
linux-modules-4.15.0-91-generic      install
linux-modules-extra-4.15.0-91-generic    install

利用apt-get安裝:

apt-get install linux-headers-4.15.0-91
apt-get install linux-headers-4.15.0-91-generic

之後再更新apt-get:

sudo apt-get update
sudo reboot

就可以了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章