To install the latest proprietary Nvidia driver on Ubuntu 18.04 LTS, you can use the following steps:
- Open a terminal window by pressing Ctrl + Alt + T.
- Stop the X server by running the command:
sudo service lightdm stop
- Install the necessary dependencies by running the command:
sudo apt-get install build-essential dkms
- Download the latest Nvidia driver from the official website.
- Change to the directory where the driver package is located using the command
cd /path/to/driver
- Make the package executable by running the command
sudo chmod +x NVIDIA-Linux-x86_64-XXX.XX.run
(replace XXX.XX with the version number of the driver you downloaded) - Run the package with the command
sudo ./NVIDIA-Linux-x86_64-XXX.XX.run
- Follow the on-screen instructions to complete the installation process.
- Restart the X server by running the command:
sudo service lightdm start
- Verify that the Nvidia driver is installed and working correctly by running the command
nvidia-smi
Note: It’s recommended to backup your current driver before upgrade the new one. Also, using the latest version of the driver may require the latest version of the kernel.