Jetpack installer only seems to work without CUDA

I am working with an Ubuntu 16.04 host PC (desktop) with 800GB available and a TX2, attempting to flash Jetpack 3.3.

If I take off CUDA and its dependencies, I am able to successfully install everything else and flash it to the TX2.
But… I need CUDA.

If I do everything the same but leave CUDA as “install” rather than “no action,” everything downloads (or at least it says download complete), but it gets stuck in the terminal at the installation with the error
E: Unable to locate package cuda-toolkit-9-0
E: Unable to locate package cuda-cross-aarch64-9-0

Here is the log:
Selecting previously unselected package cuda-repo-ubuntu1604-9-0-local.
(Reading database … 195541 files and directories currently installed.)
Preparing to unpack …/cuda-repo-ubuntu1604-9-0-local_9.0.252-1_amd64.deb …
Unpacking cuda-repo-ubuntu1604-9-0-local (9.0.252-1) …
dpkg: error processing archive /media/ubuntu/F61A01961A015551/Amy/jetpack_download/cuda-repo-ubuntu1604-9-0-local_9.0.252-1_amd64.deb (–install):
cannot copy extracted data for ‘./var/cuda-repo-9-0-local/nvidia-384_384.103-0ubuntu1_amd64.deb’ to ‘/var/cuda-repo-9-0-local/nvidia-384_384.103-0ubuntu1_amd64.deb.dpkg-new’: failed to write (No space left on device)
dpkg-deb (subprocess): decompressing archive member: lzma write error: Broken pipe
dpkg-deb: error: subprocess returned error exit status 2
dpkg-deb (subprocess): cannot copy archive member from ‘/media/ubuntu/F61A01961A015551/Amy/jetpack_download/cuda-repo-ubuntu1604-9-0-local_9.0.252-1_amd64.deb’ to decompressor pipe: failed to write (Broken pipe)
Errors were encountered while processing:
/media/ubuntu/F61A01961A015551/Amy/jetpack_download/cuda-repo-ubuntu1604-9-0-local_9.0.252-1_amd64.deb
gpg: can’t open `/var/cuda-repo-9-0-local/*.pub’: No such file or directory
Ign:1 cdrom://Ubuntu 16.04.4 LTS Xenial Xerus - Release amd64 (20180228) xenial InRelease
Hit:2 cdrom://Ubuntu 16.04.4 LTS Xenial Xerus - Release amd64 (20180228) xenial Release
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [892 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [589 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [361 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [320 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [235 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,556 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [245 kB]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,204 B]
Get:22 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,152 B]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]

** (appstreamcli:5206): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.
Fetched 4,156 kB in 1s (2,232 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package cuda-toolkit-9-0
Ign:1 cdrom://Ubuntu 16.04.4 LTS Xenial Xerus - Release amd64 (20180228) xenial InRelease
Hit:2 cdrom://Ubuntu 16.04.4 LTS Xenial Xerus - Release amd64 (20180228) xenial Release
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:7 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:9 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Err:7 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
404 Not Found [IP: 91.189.88.152 80]
Ign:9 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Err:8 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
404 Not Found [IP: 91.189.88.152 80]
Ign:9 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Err:9 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
404 Not Found [IP: 91.189.91.26 80]
Reading package lists…
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 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…
E: Unable to locate package cuda-toolkit-9-0
E: Unable to locate package cuda-cross-aarch64-9-0

Thanks in advance!

It seems like it’s saying that there’s no space left on the device but the folder properties say there is over 800GB space free.

I probably can’t get a complete answer, but do know that you can uncheck flash and run JetPack at any later date without flashing. Just use the ethernet cable and don’t go into recovery mode.

No space on device might be for host or Jetson (generally speaking…I’m not saying your logs point at one or the other). However, here are some comments:

dpkg: error processing archive /media/ubuntu/F61A01961A015551/Amy/jetpack_download/cuda-repo-ubuntu1604-9-0-local_9.0.252-1_amd64.deb (--install):
cannot copy extracted data for './var/cuda-repo-9-0-local/nvidia-384_384.103-0ubuntu1_amd64.deb' to '/var/cuda-repo-9-0-local/nvidia-384_384.103-0ubuntu1_amd64.deb.dpkg-new': failed to write (No space left on device)

The “/media/” location implies you might have a USB thumb drive or SD card mounted there. This is the device which is out of space, not your main hard drive. FYI, even if an SD card or thumb drive works for running a flash it absolutely must not be any format other than a Linux native format, e.g., it can be ext4, but NTFS and VFAT absolute guarantees that the flash will produce a defective system.

What do you see, on the host, from this command:

df -H -T /media/ubuntu

Hi,

It looks like you are running out of storage on your host:

cannot copy extracted data for './var/cuda-repo-9-0-local/nvidia-384_384.103-0ubuntu1_amd64.deb' to '/var/cuda-repo-9-0-local/nvidia-384_384.103-0ubuntu1_amd64.deb.dpkg-new': failed to write (No space left on device)

Please make sure you have a least 10G storage to allow JetPack to extract the resource and library,

Thanks.