CUDA cannot be installed on device JetPack 3.3

Hi,
I want to install OS and other packages on Jetson TX2 with JetPack L4T 3.3 and encountered this error:

dpkg-query: package ‘cuda-toolkit-9-0’ is not installed and no information is available
dpkg-query: package ‘libfreeimage-dev’ is not installed and no information is available
dpkg-query: package ‘libopenmpi-dev’ is not installed and no information is available
dpkg-query: package ‘openmpi-bin’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
1
Error: CUDA cannot be installed on device. This may be caused by other apt-get command running on device when installing CUDA.

My host PC runs Ubuntu 16.04. There is no problem with Internet connection (web browser and ping work properly on both TX2 and host PC).
I have tried “sudo apt-get install ssh-askpass” from [url]https://devtalk.nvidia.com/default/topic/1036517/jetson-tx2/jetpack-install-cuda-on-tx2-failed/[/url] and the installation still failed.
Any ideas?
Thank you!

Hi,

Could you try to reboot your device and run the JetPack again?
Thanks.

I tried to reinstall and 1 out of 5 times were successful without the error. I was following the same steps. I’m really not sure what was causing the CUDA installation problem.

Hi,

We try to install CUDA from JetPack3.3 today. Everything goes well on our environment.

There are several installation issues from cache or repository of CUDA before.
Could you try this suggestion if helps?
[url]https://devtalk.nvidia.com/default/topic/1032344/jetson-tx2/install-failure-unmet-dependencies/post/5277822/#5277822[/url]

Thanks.

When running the Cuda installation script on TX2 after installation failed (dependency error on the abovementioned packages), it complains on apt installation option -y for unauthenticated packages without --allow-unauthenticated added as well.

Adding the extra --allow-unauthenticated option fixed the probem, but unauthenticated packages should be avoided if possible… Should these packages be authenticated?

Hi,

This should be solved by adding apt-key.
You can find this command in our cuda-l4t.sh which is located at ‘{JetPack}/_installer/’:

sudo apt-key add /var/cuda-repo-$3-local/*.pub

Thanks.

This command already executes within the installer, and these errors come after. This answer was not helpful.

I had to ssh into the tx2 and run

sudo apt-get update
sudo apt-get install cuda-toolkit-9-0 -y --allow-unauthenticated
sudo apt-get install libomp1 libfreeimage-dev libopenmpi-dev openmpi-bin -y

Then, back in the X-Term shell opened up by the jetpack installation, I pressed enter to continue the installation.

This problem needs to be resolved, we should be able follow the instructions in the users guide verbatim…