1. Download the official driver
Http://www.geforce.cn/drivers
If we install the driver directly, we often get an error: Error:the Nouveau kernel driver is currently on use by your system. This driver was incompatible with the NVIDIA driver. Please go ahead and look down.
2. Disable the integrated Nouveau drive
Ubuntu System integrated Graphics driver is Nouveau, it is the third party developed for Nvidia open source driver, we need to shield it before installing Nvidia official driver.
The driver was added to the blacklist blacklist.conf, but the file's properties were not allowed to be modified. So you need to modify the file properties first.
View Properties
$sudo ls-lh/etc/modprobe.d/blacklist.conf
modifying properties
$sudo chmod 666/etc/modprobe.d/blacklist.conf
Open with Gedit Editor
$sudo gedit/etc/modprobe.d/blacklist.conf
Add a few lines after the file:
blacklist vga16fbblacklist nouveaublacklist rivafbblacklist rivatvblacklist nvidiafb
3. Start the installation
First press CTRL + ALT + F1 to the console to close the current graphics environment
sudo init 3
sudo rm/tmp/. x*
$sudo Service LIGHTDM Stop
Install the driver again
$sudo SH nvidia-linux-x86_64-xxx.run
Finally restart the graphical environment
$sudo Service LIGHTDM Start
4. View the graphics driver version
You can confirm that the driver is properly installed by using the following command
$cat/proc/driver/nvidia/version
Ubuntu16.04 Installing NVIDIA Graphics drivers