I have a GTX 1070. I downloaded the drivers from NVidia's official website and wanted to install them so I came across this post:How to install NVIDIA.run?

In the correct answer's comments it says that the drivers are reset everytime the kernel updates. So is there a way to install the drivers which wont need me to update them everytime after a kernel update OS - UBUNTU 16.04 LTS

This is my first time installing graphic drivers on Ubuntu.


I am installing drivers so I can use CUDA for deep learning

1 Answer 1


Yes it is. The following installation guide provided here by eromod will install NVidia Drivers and CUDA so that you don't need to update them manually (will be done by apt update/upgrade):

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt update

sudo ubuntu-drivers autoinstall


sudo apt install nvidia-cuda-toolkit gcc-6

nvcc --version
  • 1
    Be sure to totally uninstall the nVidia driver installed with the .run file. It should have instructions on how to do that. Otherwise you will get conflicts and major video issues. askubuntu.com/questions/219942/…
    – oldfred
    Dec 18, 2018 at 15:29
  • I used the additional drivers setting in ubuntu to get the drivers instead. CUDA works fine Dec 21, 2018 at 14:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .