How to Install Latest Nvidia Drivers on Ubuntu
因為UBUNTU 16.04 LTS 約每個月都要重灌nvidia驅動程式,所以註記一下重灌driver步驟:
本例為nvidia-415,但我比較常用390.87的驅動。
The latest Nvidia drivers are available on graphics-drivers PPA. This repository provides the latest drivers for your Ubuntu Desktop systems. This tutorial will help you to install the latest Nvidia drivers for your Ubuntu desktop using PPA.
The latest Nvidia drivers are available on graphics-drivers PPA. This repository provides the latest drivers for your Ubuntu Desktop systems. This tutorial will help you to install the latest Nvidia drivers for your Ubuntu desktop using PPA.
Remove Old Nvidia Driver
The first step is to purge currently installed Nvidia drivers so that it does not conflict with the newer versions on your Ubuntu systems.
sudo apt-get purge nvidia*
Install Latest Nvidia Driver on Ubuntu
Now enable the graphics-drivers PPA to your system. Currently, it supports Ubuntu 18.10, 18.04 LTS, 16.04 LTS, and 14.04 LTS operating systems. Keep in mind that its still under testing phase.
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update
Next, identify the installed graphics card model and recommended driver for that by running the following command:
ubuntu-drivers devices | grep "nvidia-driver"
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-415 - third-party free recommended
driver : nvidia-driver-396 - third-party free
Then execute the below command to install recommended Nvidia graphics driver on your system.
sudo apt install nvidia-415
Verify Nvidia Driver
After installation reboot your system, So that your desktop load the new Nvidia driver. Now run below command to check Nvidia module.
lsmod | grep nvidia
418.56
回覆刪除最近改用這個版本。
418.67 now
回覆刪除418.87.01 now
回覆刪除After I do from above command, then I install CUDA-10 and CUDNN, then I execute nvidia-smi, the nvidia-driver version was became 440.33.01 and cuda version is became 10.2
回覆刪除