Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Build Specification:

  • Intel i7-6850K @ 3.60GHz
  • GTX 1070


  • Fresh install of Ubuntu 16.04

Note - did not encrypt home directory or xda drive

  • No packages installed yet
  • Enter Desktop after standard boot of Ubuntu - not in safe mode or TTY space - just standard desktop


  1. sudo apt-get remove nvidia*

  2. sudo apt-get autoremove

  3. sudo apt-get update

  4. sudo apt-get install dkms build-essential linux-headers-generic vim

  5. sudo vim /etc/modprobe.d/blacklist-nouveau.conf and add the following lines:

     blacklist nouveau
     blacklist lbm-nouveau
     options nouveau modeset=0
     alias nouveau off
     alias lbm-nouveau off
  6. echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

  7. sudo update-initramfs -u

  8. cd ~/Downloads/

  9. wget

  10. chmod +x

  11. reboot

  12. Once rebooted, go into TTY1 (CTRL+ALT+F1) and login

  13. In root directory: mv ~/Downloads/ ./

  14. sudo /etc/init.d/lightdm stop

  15. sudo ./ (select yes to everything)

  16. Once finished reboot

  17. To test run: nvidia-smi - should show: NVIDIA-SMI 384.90 at the top


Copy link

ryanbranch commented Oct 26, 2020

Hi! Thank you for writing this. I found it very helpful while troubleshooting driver issues with my GTX 1070 during a Ubuntu 16.04.7 install. This Gist page was the 3rd result on Google when I searched ubunutu 16.04 driver for gtx 1070 ti just now.

Just wanted to point out that there's a small error in the markdown formatting which is causing removal of the line breaks within step 5. I created a modified fork which has whitespace inserted to ensure proper parsing by GitHub. Feel free to use it if you want to update this!

Copy link

iSkore commented Oct 29, 2020

Thank you @ryanbranch, good catch.
Gist updated to match your modification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment