JetPack install CUDA on TX2 failed

There is an error when JetPack is installing CUDA on my Jetson TX2 board。The following information is install log.

Finished Flashing OS
Determinging the IP address of target…
192.168.0.101

Waiting 30 seconds to make sure target is fully up
DEBUG: echo GetValueToInfoBroker: key = Install_Dir, value = /home/mxj/TX2 >> /tmp/jetpack_debug.log
DEBUG:mkdir -p /home/mxj.ssh
DEBUG: ssh-keygen -R 192.168.0.101
Host 192.168.0.101 not found in /home/mxj/.ssh/know_hosts
DEBUG: ssh-keyscan 192.168.0.101>>/home/mxj/.ssh/known_hosts
DEBUG: echo /home/mxj
/home/mxj
DEBUG: ssh-add /home/mxj.ssh/id_rsa 0<$-
Identity added: /home/mxj/.ssh/id_rsa (/home/mxj.ssh/id_rsa)
scp -F /dev/null -o PubkeyAuthentication=no -o ConnectTimeout=30 -o StrucTHostKeyChecking=no /home/mxj/.ssh/id_rsa.pub nvidia@192.168.0.101:/home/nvidia/tmp.pubut during banner exchange
nvidia

ssh_exchange_identification: Conncetion closed by remote host
lost connection
Copying /home/mxj/TX2/jetpack_download/cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb file to target…
ssh_exchange_identification: Connectiong closed by remote host
rsync: connection unexpectedly closed(0 bytes received so far) [sender]
rsyc error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
nvdia

ssh_exchange_identification: Connection closed by remote host

Error: CUDA cannot be installed on device.This my be caused by other apt-get command running on device when installing CUDA. Please use apt-get command in a terminal to make sure following packages are installed correctly on device befor continuing:
cuda-toolkit-9-0 libgompl libfreeimage-dev libopenmpi-dev openmpi-bin
After these packages are installed on device, press Enter key to continue

Can you ssh on command line to the Jetson? It seems this is all triggered from ssh being refused. FYI, flash can change keys and there is a possibility this is causing a rejection. Also, you should install “ssh-askpass” on your host in case of a need for a GUI password pop-up:

sudo apt-get install ssh-askpass

Example of starting an application forcing it to know where askpass is:

SSH_ASKPASS=/usr/bin/ssh-askpass ssh nvidia@<address>

I can ssh on command line to the Jethon. When I run JetPack to install CUDA,TensorRT and OpenCV, It needs me to enter the IP address, Username and Password. When I input these information, Jetpack reminds me that
The connection is timed out.

I don’t know if this question is related to my use of network agents. In our country,we cann’t visit some websize.

If i don’t use a network agent, the jetpack can’t get the package list.

mxj@mxj-B250M-D3H:~/.ssh$ ssh nvidia@192.168.0.101
nvidia@192.168.0.101’s password:
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.38-tegra aarch64)

0 packages can be updated.
0 updates are security updates.

Last login: Thu Jun 14 02:14:41 2018 from 192.168.0.101
nvidia@tegra-ubuntu:~$

ssh-askpass may still be required, or else using the password in the JetPack console. Since most of what is done requires root privileges, and since Ubuntu only accesses root via sudo, something like ask-pass or a second console text entry would be required after logging in to the nvidia account. Two passwords per operation in some cases. Have you carefully looked at the JetPack console during install?

If not, there have been reports of some people not getting through from your country. I have no idea if this is the case, but it is possible that network problems (regardless of cause) prevent downloading.

Finally I found a new JetPack-L4T-3.2.1-linux-x64_b23.run. This version does not need to use a network agent。And i install all packet successfully.

Thank you for you Answer.