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) …
OK
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 http://pk.archive.ubuntu.com trusty InRelease
Get:3 http://pk.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:4 http://pk.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Hit http://pk.archive.ubuntu.com trusty Release.gpg
Hit http://pk.archive.ubuntu.com trusty-updates/main Sources
Hit http://pk.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://pk.archive.ubuntu.com trusty-updates/universe Sources
Hit http://pk.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://pk.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-updates/universe amd64 Packages
Ign http://extras.ubuntu.com trusty InRelease
Hit http://pk.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-updates/main i386 Packages
Get:5 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://pk.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://pk.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://pk.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Get:6 http://pk.archive.ubuntu.com trusty-updates/main Translation-en [495 kB]
Get:7 http://extras.ubuntu.com trusty Release.gpg [72 B]
Hit http://extras.ubuntu.com trusty Release
Hit http://extras.ubuntu.com trusty/main Sources
Get:8 http://security.ubuntu.com trusty-security/main Sources [139 kB]
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Get:9 http://pk.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,430 B]
Get:10 http://pk.archive.ubuntu.com trusty-updates/restricted Translation-en [3,978 B]
Get:11 http://pk.archive.ubuntu.com trusty-updates/universe Translation-en [225 kB]
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://pk.archive.ubuntu.com trusty Release
Hit http://pk.archive.ubuntu.com trusty-backports/main Sources
Hit http://pk.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://pk.archive.ubuntu.com trusty-backports/universe Sources
Hit http://pk.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://pk.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://pk.archive.ubuntu.com trusty-backports/multiverse Translation-en
Get:12 http://security.ubuntu.com trusty-security/restricted Sources [4,955 B]
Hit http://pk.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://pk.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://pk.archive.ubuntu.com trusty/main Sources
Hit http://pk.archive.ubuntu.com trusty/restricted Sources
Hit http://pk.archive.ubuntu.com trusty/universe Sources
Hit http://pk.archive.ubuntu.com trusty/multiverse Sources
Hit http://pk.archive.ubuntu.com trusty/main amd64 Packages
Hit http://pk.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://pk.archive.ubuntu.com trusty/universe amd64 Packages
Get:13 http://security.ubuntu.com trusty-security/universe Sources [61.3 kB]
Hit http://pk.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://pk.archive.ubuntu.com trusty/main i386 Packages
Hit http://pk.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://pk.archive.ubuntu.com trusty/universe i386 Packages
Hit http://pk.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com trusty/main Translation-en
Hit http://pk.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://pk.archive.ubuntu.com trusty/restricted Translation-en
Hit http://pk.archive.ubuntu.com trusty/universe Translation-en
Get:14 http://security.ubuntu.com trusty-security/multiverse Sources [3,193 B]
Ign http://pk.archive.ubuntu.com trusty/main Translation-en_US
Ign http://pk.archive.ubuntu.com trusty/multiverse Translation-en_US
Get:15 http://security.ubuntu.com trusty-security/main amd64 Packages [652 kB]
Ign http://pk.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com trusty/universe Translation-en_US
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:16 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.0 kB]
Get:17 http://security.ubuntu.com trusty-security/universe amd64 Packages [180 kB]
Get:18 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,122 B]
Get:19 http://security.ubuntu.com trusty-security/main i386 Packages [601 kB]
Get:20 http://security.ubuntu.com trusty-security/restricted i386 Packages [13.7 kB]
Get:21 http://security.ubuntu.com trusty-security/universe i386 Packages [180 kB]
Get:22 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4,280 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Fetched 2,787 kB in 12s (224 kB/s)
W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources Hash Sum mismatch

W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages Hash Sum mismatch

W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages Hash Sum mismatch

W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages Hash Sum mismatch

W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages 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?

Thanks

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
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.