Installing CUDA toolkit on host failed

I have a brand new TX2 that I am in the process of flashing with JetPack 3.1 with a Ubuntu 14.04 host machine. I successfully downloaded all the stuff. While installing the CUDA toolkit, I got an error. Here is the log

Selecting previously unselected package cuda-repo-ubuntu1404-8-0-local.
(Reading database … 200447 files and directories currently installed.)
Preparing to unpack …/cuda-repo-ubuntu1404-8-0-local_8.0.84-1_amd64.deb …
Unpacking cuda-repo-ubuntu1404-8-0-local (8.0.84-1) …
Setting up cuda-repo-ubuntu1404-8-0-local (8.0.84-1) …
Ign file: InRelease
Get:1 file: Release.gpg [819 B]
Get:2 file: Release [574 B]
Ign file: Translation-en_US
Ign file: Translation-en
Ign trusty InRelease
Get:3 trusty-updates InRelease [65.9 kB]
Get:4 trusty-backports InRelease [65.9 kB]
Hit trusty Release.gpg
Hit trusty-updates/main Sources
Hit trusty-updates/restricted Sources
Hit trusty-updates/universe Sources
Hit trusty-updates/multiverse Sources
Hit trusty-updates/main amd64 Packages
Hit trusty-updates/restricted amd64 Packages
Hit trusty-updates/universe amd64 Packages
Ign trusty InRelease
Hit trusty-updates/multiverse amd64 Packages
Hit trusty-updates/main i386 Packages
Get:5 trusty-security InRelease [65.9 kB]
Hit trusty-updates/restricted i386 Packages
Hit trusty-updates/universe i386 Packages
Hit trusty-updates/multiverse i386 Packages
Get:6 trusty-updates/main Translation-en [495 kB]
Get:7 trusty Release.gpg [72 B]
Hit trusty Release
Hit trusty/main Sources
Get:8 trusty-security/main Sources [139 kB]
Hit trusty/main amd64 Packages
Get:9 trusty-updates/multiverse Translation-en [7,430 B]
Get:10 trusty-updates/restricted Translation-en [3,978 B]
Get:11 trusty-updates/universe Translation-en [225 kB]
Hit trusty/main i386 Packages
Hit trusty Release
Hit trusty-backports/main Sources
Hit trusty-backports/restricted Sources
Hit trusty-backports/universe Sources
Hit trusty-backports/multiverse Sources
Hit trusty-backports/main amd64 Packages
Hit trusty-backports/restricted amd64 Packages
Hit trusty-backports/universe amd64 Packages
Hit trusty-backports/multiverse amd64 Packages
Hit trusty-backports/main i386 Packages
Hit trusty-backports/restricted i386 Packages
Hit trusty-backports/universe i386 Packages
Hit trusty-backports/multiverse i386 Packages
Hit trusty-backports/main Translation-en
Hit trusty-backports/multiverse Translation-en
Get:12 trusty-security/restricted Sources [4,955 B]
Hit trusty-backports/restricted Translation-en
Hit trusty-backports/universe Translation-en
Hit trusty/main Sources
Hit trusty/restricted Sources
Hit trusty/universe Sources
Hit trusty/multiverse Sources
Hit trusty/main amd64 Packages
Hit trusty/restricted amd64 Packages
Hit trusty/universe amd64 Packages
Get:13 trusty-security/universe Sources [61.3 kB]
Hit trusty/multiverse amd64 Packages
Hit trusty/main i386 Packages
Hit trusty/restricted i386 Packages
Hit trusty/universe i386 Packages
Hit trusty/multiverse i386 Packages
Hit trusty/main Translation-en
Hit trusty/multiverse Translation-en
Hit trusty/restricted Translation-en
Hit trusty/universe Translation-en
Get:14 trusty-security/multiverse Sources [3,193 B]
Ign trusty/main Translation-en_US
Ign trusty/multiverse Translation-en_US
Get:15 trusty-security/main amd64 Packages [652 kB]
Ign trusty/restricted Translation-en_US
Ign trusty/universe Translation-en_US
Ign trusty/main Translation-en_US
Ign trusty/main Translation-en
Get:16 trusty-security/restricted amd64 Packages [14.0 kB]
Get:17 trusty-security/universe amd64 Packages [180 kB]
Get:18 trusty-security/multiverse amd64 Packages [4,122 B]
Get:19 trusty-security/main i386 Packages [601 kB]
Get:20 trusty-security/restricted i386 Packages [13.7 kB]
Get:21 trusty-security/universe i386 Packages [180 kB]
Get:22 trusty-security/multiverse i386 Packages [4,280 B]
Hit trusty-security/main Translation-en
Hit trusty-security/multiverse Translation-en
Hit trusty-security/restricted Translation-en
Hit trusty-security/universe Translation-en
Fetched 2,787 kB in 12s (224 kB/s)
W: Failed to fetch Hash Sum mismatch

W: Failed to fetch Hash Sum mismatch

W: Failed to fetch Hash Sum mismatch

W: Failed to fetch Hash Sum mismatch

W: Failed to fetch Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists…
Building dependency tree…
Reading state 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-8-0 : Depends: cuda-core-8-0 (>= 8.0.84) but it is not going to be installed
Depends: cuda-command-line-tools-8-0 (>= 8.0.84) but it is not going to be installed
Depends: cuda-samples-8-0 (>= 8.0.84) but it is not going to be installed
Depends: cuda-documentation-8-0 (>= 8.0.84) but it is not going to be installed
Depends: cuda-visual-tools-8-0 (>= 8.0.84) but it is not going to be installed
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I don’t know if this info will be of any use or no, but I don’t have an nvidia graphics card on my laptop. And I have plenty of disk space,so that shouldn’t be a problem, plus this is the first time I am installing any of this stuff on my pc. Please do help me out.

Hi 14beeamustafa,

Could you check your host CUDA version?

$ ll /usr/local/cuda/lib64

Hi 14beeamustafa,

Is this still an issue? Any update?


This is still an issue for me. My cuda-toolkit-8-0 version is 8.0.84-1.
user@CND6315C38:/etc/apt$ apt-cache policy cuda-toolkit-8-0
Installed: (none)
Candidate: 8.0.84-1
Version table:
8.0.84-1 0
500 file:/var/cuda-repo-8-0-local/ Packages
user@CND6315C38:/etc/apt$ ll /usr/local/cuda/lib64
lrwxrwxrwx 1 root root 24 Sep 14 2016 /usr/local/cuda/lib64 -> targets/x86_64-linux/lib/

hello everyone. Sorry I took so late to get back. I have absolutely no idea how, but my issue somehow resolved itself. All I did was rerun the installer a few times. The first couple of times, it sent back the same error. the third time, it miraculously resolved the issue and went ahead installing other components. I guess I am kind of lucky in this regard xD.

I found a way around my issue by manually installing the failing dependencies in command line…

I found a way to solve this error:

change your ubuntu update source.

Hi yanjie, which source did you finally use?

Hi gwwang, as your ID, I thought you know the tsinghua source.

Thank you, got it.