SDK Manager , Error while trying to install Jetpack 4.2 on TX2 : CUDA on Host

Hello,

I’m trying to install jetpack with the new SDK manager and I get an error at the beggining when trying to install “CUDA on Host”.

Then it skips the step, flash the jetson, but then it is stuck at 50% because it can’t install CUDA.

20:45:25 INFO : CUDA on Host : Get:47 file:/var/cuda-repo-10-0-local-10.0.166-410.62 cuda-toolkit-10-0 10.0.166-1 [2,836 B]
20:45:25 ERROR : CUDA on Host : E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-common-dev_18.0.5-0ubuntu0~18.04.1_amd64.deb 404 Not Found [IP: 194.158.119.186 80]
20:45:25 INFO : CUDA on Host : E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-dev_18.0.5-0ubuntu0~18.04.1_amd64.deb 404 Not Found [IP: 194.158.119.186 80]
20:45:25 INFO : CUDA on Host : E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
20:45:25 INFO : CUDA on Host : exit status 100
20:45:25 INFO : CUDA on Host : [ Package Install Finished with Error ]
20:45:25 ERROR : CUDA on Host : NV_CUDA_HOST_COMP apt install failed
20:45:25 INFO : CUDA on Host :
20:45:25 INFO : CUDA on Host : [ 80.00 KB used. Disk Avail: 116.88 GB ]
20:45:25 INFO : CUDA on Host : [ NV_CUDA_HOST_COMP Install took 32s ]
20:45:25 INFO : CUDA on Host : apt install failed
20:45:25 ERROR : CUDA on Host : command terminated with error

Any idea ?

Ok, it seems that this answer: https://devtalk.nvidia.com/default/topic/1044815/general/flashing-tegra-fails-when-i-flash-tegra-a-failed-and-the-part-of-logs-is-following-how-can-i-do-/post/5302199/#5302199 solves this problem.

Possible cause: CUDA add a foreign architecture “arm64” that makes apt-get update failure.
1. Please check if ARCH arm64 exists in the system arch list. Run sudo dpkg --print-foreign-architectures
2. If Yes. Run sudo apt-get purge “*:arm64”, all arm64 package will be removed.
3. Then sudo dpkg --remove-architecture arm64, remove ARCH arm64 from system arch list.
4. Then “sudo apt-get update” should end with success.