Reinstalling Cuda 9.0 with Jetpack 3.2

When I originally used Jetpack 3.2 from a host Ubuntu 16.04 machine, I was able to successfully install CUDA 9.0. However, due to some other issues, I tried installing CUDA 8.0 with Jetpack 3.1 (which didn’t work anyways). But it did, somehow, make my TX2 not recognize the original CUDA 9.0 installation.

I’d like to reinstall CUDA 9.0, but am running into a few issues.


  1. Shows that the Jetpack 3.2 installer would be installing CUDA 8.0.84 instead of CUDA 9.0. What do I do about this?

  2. Even when I try to install the above anyways, I run into issues when installing VisionWorks that I can’t figure out how to resolve.

Preparing to unpack .../libvisionworks-repo_1.6.0.193n_amd64_ubuntu-14.04.deb .
.
Unpacking libvisionworks-repo (1.6.0.193n) ...
Setting up libvisionworks-repo (1.6.0.193n) ...
OK
Get:1 file:/var/cuda-repo-8-0-local  InRelease
Ign:1 file:/var/cuda-repo-8-0-local  InRelease
Get:2 file:/var/cuda-repo-9-0-local  InRelease
Ign:2 file:/var/cuda-repo-9-0-local  InRelease
Get:3 file:/var/libopencv4tegra-repo  InRelease
Ign:3 file:/var/libopencv4tegra-repo  InRelease
Get:4 file:/var/visionworks-repo  InRelease
Ign:4 file:/var/visionworks-repo  InRelease
Get:5 file:/var/cuda-repo-8-0-local  Release [574 B]
Get:5 file:/var/cuda-repo-8-0-local  Release [574 B]
Get:6 file:/var/cuda-repo-9-0-local  Release [574 B]
Get:6 file:/var/cuda-repo-9-0-local  Release [574 B]
Get:7 file:/var/libopencv4tegra-repo  Release [347 B]
Get:7 file:/var/libopencv4tegra-repo  Release [347 B]
Get:8 file:/var/visionworks-repo  Release [1,999 B]
Get:8 file:/var/visionworks-repo  Release [1,999 B]
Get:9 file:/var/visionworks-repo  Release.gpg [819 B]
Get:9 file:/var/visionworks-repo  Release.gpg [819 B]
Ign:10 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:13 http://packages.ros.org/ros/ubuntu xenial InRelease
Hit:14 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:15 http://dl.google.com/linux/chrome/deb stable Release
Hit:17 http://repository.spotify.com stable InRelease
Hit:19 http://ppa.launchpad.net/crass/ufraw/ubuntu xenial InRelease
Get:18 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:23 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial InRelease
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Ign:24 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:25 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:26 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Get:27 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [758 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [701 kB]
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:30 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [314 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [319 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [229 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [621 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [574 kB]
Ign:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:36 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [250 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [242 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [328 kB]
Get:39 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:40 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [473 kB]
Get:41 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:43 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,076 B]
Get:44 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,972 B]
Get:45 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Ign:24 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:25 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:26 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:46 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:47 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Get:48 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [425 kB]
Ign:49 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:50 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [204 kB]
Get:51 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.5 kB]
Get:52 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [67.9 kB]
Get:53 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,104 B]
Get:54 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [341 kB]
Get:55 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7,080 B]
Ign:56 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:57 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,844 B]
Get:58 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,092 B]
Get:59 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe DEP-11 64x64 Icons [2,717 B]
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:60 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [298 kB]
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:62 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [128 kB]
Get:63 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 kB]
Ign:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:25 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:26 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:46 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:56 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:64 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [147 kB]
Get:65 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Err:24 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404  Not Found [IP: 2001:67c:1562::19 80]
Ign:25 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:26 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:46 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:66 http://security.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [3,376 B]
Ign:67 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:49 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:56 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404  Not Found [IP: 2001:67c:1562::19 80]
Ign:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:67 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:49 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:46 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404  Not Found [IP: 2001:67c:1562::19 80]
Ign:56 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:67 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Err:49 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:67 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Fetched 306 kB in 2s (133 kB/s)
Reading package lists...
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/_var_libopencv4tegra-repo_Release
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1562::19 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1562::19 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1562::19 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1360:8001::21 80]
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...
The following additional packages will be installed:
  gstreamer1.0-plugins-bad-videoparsers icu-devtools libeigen3-dev
  libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-dev
  libgstreamer1.0-dev libicu-dev libxml2-dev
Suggested packages:
  libeigen3-doc libmrpt-dev gstreamer1.0-doc icu-doc
Recommended packages:
  libopencv-dev
The following NEW packages will be installed:
  gstreamer1.0-plugins-bad-videoparsers icu-devtools libeigen3-dev
  libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-dev
  libgstreamer1.0-dev libicu-dev libvisionworks libvisionworks-dev
  libvisionworks-samples libxml2-dev
0 upgraded, 11 newly installed, 0 to remove and 5 not upgraded.
Need to get 11.2 MB/75.2 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Get:1 file:/var/visionworks-repo  libvisionworks 1.6.0.500n [9,510 kB]
Err:1 file:/var/visionworks-repo  libvisionworks 1.6.0.500n
  File not found - /var/visionworks-repo/./libvisionworks_1.6.0.500n_amd64.deb (2: No such file or directory)
Get:2 file:/var/visionworks-repo  libvisionworks-dev 1.6.0.500n [154 kB]
Err:2 file:/var/visionworks-repo  libvisionworks-dev 1.6.0.500n
  File not found - /var/visionworks-repo/./libvisionworks-dev_1.6.0.500n_all.deb (2: No such file or directory)
Get:3 file:/var/visionworks-repo  libvisionworks-samples 1.6.0.500n [54.4 MB]
Err:3 file:/var/visionworks-repo  libvisionworks-samples 1.6.0.500n
  File not found - /var/visionworks-repo/./libvisionworks-samples_1.6.0.500n_amd64.deb (2: No such file or directory)
Err:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 icu-devtools amd64 55.1-7ubuntu0.3
  404  Not Found [IP: 2001:67c:1562::19 80]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgstreamer1.0-dev amd64 1.8.3-1~ubuntu0.1 [373 kB]
Err:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 icu-devtools amd64 55.1-7ubuntu0.3
  404  Not Found [IP: 2001:67c:1562::19 80]
Err:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libicu-dev amd64 55.1-7ubuntu0.3
  404  Not Found [IP: 2001:67c:1562::19 80]
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxml2-dev amd64 2.9.3+dfsg1-1ubuntu0.5 [741 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgstreamer-plugins-base1.0-dev amd64 1.8.3-1ubuntu0.2 [236 kB]
Err:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libicu-dev amd64 55.1-7ubuntu0.3
  404  Not Found [IP: 2001:67c:1562::19 80]
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libgstreamer-plugins-bad1.0-0 amd64 1.8.3-1ubuntu0.2 [401 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 gstreamer1.0-plugins-bad-videoparsers amd64 1.8.3-1ubuntu0.2 [84.9 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libeigen3-dev all 3.3~beta1-2 [663 kB]
Fetched 2,497 kB in 0s (2,924 kB/s)
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/i/icu/icu-devtools_55.1-7ubuntu0.3_amd64.deb  404  Not Found [IP: 2001:67c:1562::19 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu-dev_55.1-7ubuntu0.3_amd64.deb  404  Not Found [IP: 2001:67c:1562::19 80]

E: Failed to fetch file:/var/visionworks-repo/./libvisionworks_1.6.0.500n_amd64
deb  File not found - /var/visionworks-repo/./libvisionworks_1.6.0.500n_amd64.deb (2: No such file or directory)

E: Failed to fetch file:/var/visionworks-repo/./libvisionworks-dev_1.6.0.500n_all.deb  File not found - /var/visionworks-repo/./libvisionworks-dev_1.6.0.500n_all.deb (2: No such file or directory)

E: Failed to fetch file:/var/visionworks-repo/./libvisionworks-samples_1.6.0.500n_amd64.deb  File not found - /var/visionworks-repo/./libvisionworks-samples_1.6.0.500n_amd64.deb (2: No such file or directory)

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Even running apt-get update (and related commands) on both my host machine and the TX2 don’t solve this issue.

Some side notes: I have the /usr/local/cuda-9.0 directory. The ultimate goal is to install the Stereolab Zed SDK 2.4.0 (http://download.stereolabs.com/zedsdk/2.4/RC), and when I do I get the following error: ERROR: the installer failed to detect the CUDA version (CUDA 9.0 required), make sure it’s installed.

Any idea on how to resolve this? Thank you! Let me know if anything should be clarified.

Hi,

CUDA 8.0 cannot work with rel-28.2, which is contained in JetPack3.2.
An appropriated CUDA driver, located in OS, is required to enable the CUDA functionality.
That why it is required to flash OS and CUDA libraries from the identical JetPack version.

For your VisionWorks issue, please check if this comment helps.
https://devtalk.nvidia.com/default/topic/1020350/jetson-tx2/bug-installing-jetpack-3-1/post/5195912/#5195912

Thanks.

So the only way I can re-install CUDA 9 is by reflashing the OS completely?

To reiterate, I do not want CUDA 8.0. But it looks like the Jetpack 3.2 installer is forcing me to install CUDA 8.0, right?

JetPack3.2 should put in CUDA 9.0.

Hi,

As linuxdev said, CUDA in JetPack 3.2 is 9.0.
Thanks,

The issue in question was that the first image I originally posted listed the CUDA toolkit to-be-installed as version 8.0.84, whereas I expected it to list version 9.0. I know that as advertised, JetPack 3.2 installs CUDA 9.0.

Anyways, I reflashed the TX-2 again… and everything installed correctly. As for the visionworks issue, the reflash seemed to fix any issues I had known of.

Weird…
Thanks for the help everyone!