Ubuntu – Insatlling CUDA : Failed to add GPGKEY at http://cuda-repo/repos/GPGKEY to apt keys

cudadriversnvidia

I have a brand new installed Ubuntu 14.04, my laptop has an NVIDIA GEFORCE 740M. I've been following this guide to install CUDA, and right after tyiping:

sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb 

I get an error message

Failed to add GPGKEY at http://cuda-repo/repos/GPGKEY to apt keys.

I tried what suggested here with no success, and I'm definetely lost right now. How do I fix this problem ?

I tried the same process with the new CUDA 7 and that gave me no errors but some driver problems arose, I'm trying to install CUDA 6.5 because me and a collegue are wroking on the same project and he already has the 6.5 working so I need to adapt (even though I don't think having another version of CUDA can cause any problem). I'd like to solve the GPGKEY problem, but if that's not the case I'll have to do it another way (in this case any hint would be much appreciated).

Keep in mind I tried to install CUDA 6.5 with the .run, there I had no problems but when installing the nvidia-cuda-toolkit it only installed the 5.5 version clearly not compatible with the 6.5. So again, I'm open to any other possibility to make it work. It feels like even if I fix this problem, I'd still have issues getting the nvidia-toolkit 6.5. If you need any other information to help me out, I'll be glad to share it.

Best Answer

To install nVidia cuda, follow the instaructions:

  1. first download the .run file from here. (you can check for the latest version available here)

  2. Place the downloaded file in your home folder (/home/username/)

  3. now change the tty session with Ctrl+Alt+F1 (before doing this, note down the instructions somewhere else. we are going turn off the GUI session)

  4. Login with your username and password

  5. run this command to turn off the x-server:

sudo service lightdm stop

  1. Run the cuda installer with this command:

sudo ./cuda_*

  1. Follow the instructions of the installer and install cuda development toolkit.

  2. When done, run this command to start xserver again:

sudo service lightdm start

  1. Finally get back to GUI (tty7) by pressing Ctrl+Alt+F7

  2. Please perform a restart and enjoy!



You can skip steps 8, 9, 10 and enter this command to restart directly after installation:

sudo reboot

I did the exact same process and I successfully installed cuda development toolkit. I'm having nVidia GTX 750 1 GB DDR 5.

Related Question