I tried to install Nvidia driver in Ubuntu 16.04, I download the package from the official website and excute the command
sudo sh ./NVIDIA-Linux-x86_64-384.183.run –no-opengl-filesHowever, An error happened with
/nvidia-installer: invalid option: "–no-opengl-files"
ERROR: Invalid commandline, please run `./nvidia-installer --help` for usage information.Could somebody give me a solution?
22 Answers
Try to remove the installed drivers by running:
sudo apt-get purge nvidia*
sudo apt remove nvidia-*
sudo apt autoremove see which is the recommended driver for your Nvidia card by running:
ubuntu-drivers devicesIf you want to install the driver automatically, run :
sudo ubuntu-drivers autoinstallIf you want to install a specific driver, run:
sudo apt install nvidia-<driver number>Once the installation is finished, run prime-select query to check which graphic card is being used by your device.
If you want to change the graphic card used by your PC, run : sudo prime-select <intel/ nvidia>; choose between Nvidia and Intel graphic cards.
After that, restart your PC to apply changes
The solution is to run
sudo apt-get install nvidia-384You don't need a run file for that.
Another option is to use Software & Updates -> Additional Drivers GUI for that purpose.