nvidia-smi command not found Ubuntu 16.04
I am trying to install nvidia drivers on my ubuntu 16.04 (I have a GeForce GTX 960M). I tried a lot of methods explained on internet but none seems to work. (I saw How to install nvidia-smi?, nvidia-smi: command not found on Ubuntu 16, but these did not help...)
Indeed when I run nvidia-smi
, I get nvidia-smi
command not found, and when I run lshw -numeric -C display
I see that my graphical card is has status display unclaimed
. I don't know if it is related but it seems weird
Solution 1:
The solution that worked for me was to disable secure boot when rebooting after installing the NVIDIA drivers.
sudo apt purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-381
Then reboot, in the menu choose "change secure boot options", put the password you previously chose and disable the secure boot.
Solution 2:
Try updating the driver.
-
Add the PPA by running the following commands in terminal:
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update
Open Software & Updates from System Settings or directly from Dash, click on the
Additional Drivers
tab, select the driver you want to use, and clickApply changes
.After the driver is downloaded and installed, restart your system.
Solution 3:
In my case, just disabling secure boot in the BIOS solved the problem.
Solution 4:
The driver's version depends on your GPU. Check it here, before installing any driver: https://www.nvidia.com/Download/index.aspx?lang=en-us