How do I resolve errors in OpenCV installation?

The following error occurred while running SDK Manager (installed from sdkmanager_1.0.1-5538_amd64.deb).

ERROR : OpenCV on Target : Run commands failed at step PreInstall: command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh jetson@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no jetson@192.168.55.1 “~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh” finished with error

I logged into Jetson AGX XAVIER and ran the following script with the error:
~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh


Get:1 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
Get:2 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Get:2 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Ign:3 https://repo.download.nvidia.com/jetson/common r32 InRelease
Ign:4 https://repo.download.nvidia.com/jetson/t194 r32 InRelease
Err:5 https://repo.download.nvidia.com/jetson/common r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]
Err:6 https://repo.download.nvidia.com/jetson/t194 r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]
Hit:8 Index of /ubuntu-ports bionic InRelease
Hit:9 Index of /ubuntu-ports bionic-updates InRelease
Hit:10 Index of /ubuntu-ports bionic-backports InRelease
Hit:11 Index of /ubuntu-ports bionic-security InRelease
Reading package lists…
E: The repository ‘https://repo.download.nvidia.com/jetson/common r32 Release’ does not have a Release file.
E: The repository ‘https://repo.download.nvidia.com/jetson/t194 r32 Release’ does not have a Release file.
Unhandled error when running sudo apt-get update

Apt-get update is performed in the script, and there is no file under “Index” in it. It will be displayed.
Who doesn’t know?

After that, I tried to install OpenCV 4.1.1 manually referring to the following article.
https://devtalk.nvidia.com/default/topic/1064802/jetson-nano/jetson-nano-compile-opencv-4-1-1-issue/

The installation of OpenCV 4.1.1 was successful, but when I tried again with SDK Manager, the following error occurred.


ERROR : NVIDIA Container Runtime with Docker integration (Beta) : command safe_apt_install “sudo dpkg -i /opt/nvidia/deb_repos/nvidia-container-csv-visionworks_1.6.0.500n_arm64.deb” 5; sleep 5; finished with error

I would like you to tell me the measures.

The following command with the error was executed on Jetson AGX XAVIER.
sudo dpkg -i /opt/nvidia/deb_repos/nvidia-container-csv-visionworks_1.6.0.500n_arm64.deb

The message “This is a dependency problem and libvisionworks (= 1.6.0.500n) is not installed” is displayed.

Hi,

Err:5 https://repo.download.nvidia.com/jetson/common r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]

We had server issue in last few days so not sure if this is related.

Do you still hit this issue with sdkmanager installation today?

Thank you for reply
Yes, the same happens today.

Hi takeshi.watanabe.hj,

Please try remove below folder and run sdkmanager again:

$ sudo rm -r ~/.nvsdkm/
$ sudo apt-get update
$ sdkmanager

Thanks for the reply.
I ran as specified, but got the same error.


21:21:15 ERROR : OpenCV on Target : Run commands failed at step PreInstall: command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh jetson@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no jetson@192.168.55.1 “~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh” finished with error

The result of running the following script on Jetson was the same.
~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh

Get:1 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
Get:2 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Get:2 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Ign:3 https://repo.download.nvidia.com/jetson/common r32 InRelease
Ign:4 https://repo.download.nvidia.com/jetson/t194 r32 InRelease
Err:5 https://repo.download.nvidia.com/jetson/common r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]
Err:6 https://repo.download.nvidia.com/jetson/t194 r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]
Hit:7 Index of /ubuntu-ports bionic InRelease
Hit:9 Index of /ubuntu-ports bionic-updates InRelease
Hit:10 Index of /ubuntu-ports bionic-backports InRelease
Hit:11 Index of /ubuntu-ports bionic-security InRelease
Reading package lists…
E: The repository ‘https://repo.download.nvidia.com/jetson/common r32 Release’ does not have a Release file.
E: The repository ‘https://repo.download.nvidia.com/jetson/t194 r32 Release’ does not have a Release file.
Unhandled error when running sudo apt-get update

Before the above error, the following error occurred during the installation of CUDA, and SDK Manager processing stopped.

21:03:40 ERROR : CUDA Toolkit for L4T : command safe_apt_install “sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb” 5; sleep 5; ; safe_apt_install "sudo apt-get -y install cuda-toolkit-10-0 " 5 finished with error

After executing the following command on Jetson and retrying with SDK Manager, I proceeded. Has anything affected?
$ sudo apt --fix-broken install

What is the error you hit from below?

21:21:15 ERROR : OpenCV on Target : Run commands failed at step PreInstall: command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh jetson@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no jetson@192.168.55.1 “~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh” finished with error


command safe_apt_install “sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb” 5; sleep 5; ; safe_apt_install "sudo apt-get -y install cuda-toolkit-10-0 " 5 finished with error

Are you able to scp anything from your host to tegra through 192.168.55.1 IP?

Since the following files exist on Jetson, the copy with scp was successful and I understand that an error occurred in executing the script.
~ / tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh

Any files could be copied from the host to Jetson via scp via IP 192.168.55.1.

sorry. There were not enough answers.


command safe_apt_install “sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb” 5; sleep 5; ; safe_apt_install "sudo apt-get -y install cuda-toolkit-10-0 " 5 finished with error



The following command was executed on Jetson.
(1)$ sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb
(2)$ sudo apt-get -y install cuda-toolkit-10-0

(1) succeeds, and (2) is dependence, and an error has occurred.


パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています
状態情報を読み取っています… 完了
以下のパッケージには満たせない依存関係があります:
cuda-toolkit-10-0 : 依存: cuda-compiler-10-0 (>= 10.0.326) しかし、インストールされようとしていません
依存: cuda-tools-10-0 (>= 10.0.326) しかし、インストールされようとしていません
依存: cuda-samples-10-0 (>= 10.0.326) しかし、インストールされようとしていません
依存: cuda-documentation-10-0 (>= 10.0.326) しかし、インストールされようとしていません
依存: cuda-libraries-dev-10-0 (>= 10.0.326) しかし、インストールされようとしていません
依存: cuda-nvml-dev-10-0 (>= 10.0.326) しかし、インストールされようとしていません
依存: cuda-license-10-0 (>= 10.0.326) しかし、インストールされようとしていません
E: 未解決の依存関係です。‘apt --fix-broken install’ を実行してみてください (または解法を明示してください)。

Hi takeshi.watanabe.hj,

Please try below command:

$ sudo apt --fix-broken install
$ sudo apt-get update
$ sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb

Thanks for your reply.
After carrying it out, 1. 3. This succeeds, 2. The following error happened in this.

:
Err:5 https://repo.download.nvidia.com/jetson/common r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]
Err:6 https://repo.download.nvidia.com/jetson/t194 r32 Release
Could not handshake: An unexpected TLS packet was received. [IP: 158.213.204.12 8080]
:
Reading package lists…
E: The repository ‘https://repo.download.nvidia.com/jetson/common r32 Release’ does not have a Release file.
E: The repository ‘https://repo.download.nvidia.com/jetson/t194 r32 Release’ does not have a Release file.
Unhandled error when running sudo apt-get update

Of the following that tried it, but has the same it until now afterwards rein SDK Manager an error happened.

ERROR : OpenCV on Target : Run commands failed at step PreInstall: command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh jetson@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no jetson@192.168.55.1 “~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_OPENCV_TARGET_POST_INSTALL_COMP.sh” finished with error

Hi takeshi.watanabe.hj,

What’s JetPack version are you using?
Are you flash image and install sdk components with the same JetPack version?

As for the version of JetPack, 4.3, a version of SDK Manager are 1.0.1.5538.
I work only using this version until now.

Hi takeshi.watanabe.hj,

Please check the proxy settings on your host machine.
Reference link: https://askubuntu.com/questions/1014973/apt-update-could-not-handshake-an-unexpected-tls-packet-was-received