TK1 with JetPack L4T 3.0, CUDA installation failed

I used JetPack3.0 to install OS and other packages on TK1. The OS was successfully installed but something wrong happened when installing CUDA. Here’s the error information:

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
cuda-toolkit-6-5 : Depends: cuda-core-6-5 (= 6.5-53) but it is not going to be installed
Depends: cuda-command-line-tools-6-5 (= 6.5-53) but it is not going to be installed
Depends: cuda-samples-6-5 (= 6.5-53) but it is not going to be installed
Depends: cuda-documentation-6-5 (= 6.5-53) but it is not going to be installed
libopenmpi-dev : Depends: libhwloc-dev but it is not going to be installed

dpkg-query:package’cuda-toolkit-6-5’ 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.
error:CUDA cannot be installed on device.This may be caused by other apt-get command running on device when installing CUDA.Please use apt-get command in a terminal to make sure following packages are installed correctly on device before continueing:
cuda-toolkit-6-5 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin
After these packages are installed on device, press Enter key to continue

The installation just stalled here and nothing happened after I pressed Enter key. I can only shut down the Xterm.
I’ve tried many times both in HOST with ubuntu 16.04 and 14.04, but they came to the same result. None of my friends met this situation.
Can anybody help me?

Hi Apocalypser,

Please try below command:

sudo apt-get install cuda-toolkit-6-5 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin

After install completed, press Enter key to continue.

Hi carolyuu,
I’ve tried, but it can’t be done. The same problem just happened again. It was strange that the apt-get command didn’t solve those dependency problem! Also I tried to use apt-get update command but there came many “Hash sum mismatch” and it finally failed. Is there any problem with the OS or my networking?

Hi Apocalypser,

Your host ubuntu version is correct! Which JetPack version are you install?

Please try below command:

sudo reboot
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install cuda-toolkit-6-5 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin

I used JetPack3.0 (R21.5) to install on my TK1, It can be installation successfully.

Hi carolyuu,
I use Jetpack 3.0(r21.5), too.
The apt-get update command just didn’t work, only to got many “Failed to fetch” problems. And after I used the last command those unmet dependencies still exist.

Hi carolyuu,
Eventually I solved the problem. It’s actually caused by my networking. My host is in Chinese Education Net, so sometimes many ubuntu’s official sources at abroad couldn’t be connected to. I changed my lists file and used a mirror at home then these dependencies problems were gone. Now I’m enjoying my TK1.
Thanks for ur help!