10 thoughts on “Nvidia CUDA Toolkit Installation (Ubuntu 16.04 LTS) – Notes”

  1. Disable Secure Boot at UEFI Firmware setting (do this in BIOS mode / restart from Windows advanced startup)
    How to do this step? I cannot find this option in my setting up page!

    1. Have you tried boot into BIOS? (i.e. restart your PC, while holding on to the shift key. Upon booting up you may find some options to get into boot option / advance setup (usually one of the F keys. e.g. F12, F8, F2, etc..). Once you are in you should see a menu about enable / disable Secure Boot. (Apparently not all PCs have this options. You may have to check if your PC has the enable / disable secure boot option).

  2. Dude, thank you so much
    You saved my life with these instructions… I tried so many solutions and none of them worked. I think the best solution is using .deb instead of .run, as many suggested.

    Great work buddy

    1. woohoo congrats! I’m glad the article helps. I remember getting stuck on this for days and so written up this note to for future reminders primarily for my own benefit – and extremely glad it’s also benefit others too. Thanks for the kind comment it means a lot to me :)

  3. I’m following your steps but I’m running into an error when installing via debian package I’m new to Ubuntu so might be making some obvious mistakes. I’ve downloaded the kernel packages via this line:

    sudo apt-get install linux-headers-$(uname -r)
    [sudo] password for username:
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    linux-headers-4.10.0-38-generic is already the newest version (4.10.0-38.42~16.04.1).
    linux-headers-4.10.0-38-generic set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.

    Then I attempt the installation:

    sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb

    dpkg: error processing archive cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb (–install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb

    I”m getting the error above.

    Anything obvious I’m making mistakes on?

    Thank you so much.

    1. IOops! I see I’ve downloaded the run file instead of the debian file. I’ve also noticed that the website only has Cuda 9.0 which is not compatible with some frameworks I want to use. I can’t seem to find the download archives.

  4. Thank you. I finally managed to get cuda installed for my 5-year old GTX750Ti. I wasn’t able to make proper use of its capabilities. Thanks again.

Comments are closed.