Error installing TensorRT on SDK Manager 1.4

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
Target Operating System
Linux
Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
SDK Manager Version
1.4.1.7402
Host Machine Version
native Ubuntu 18.04

I want to update the Nvidia tools on both the host and target computer. The only issue I had during this process is that I was unable to flash the Xavier a+b because the SDK Manager failed to install TensorRT Cross-Compile for Linux 6.3 . This is the details:

Command executed by SDK Manager:

sudo apt-get update; sleep 0.5; sudo apt-get -y install libnvinfer6-cross-aarch64=6.3* libnvinfer-dev-cross-aarch64=6.3* libnvinfer-plugin6-cross-aarch64=6.3* libnvinfer-plugin-dev-cross-aarch64=6.3* libnvonnxparsers6-cross-aarch64=6.3* libnvonnxparsers-dev-cross-aarch64=6.3* libnvparsers6-cross-aarch64=6.3* libnvparsers-dev-cross-aarch64=6.3* libnvinfer-consistency6-cross-aarch64=6.3* libnvinfer-consistency-dev-cross-aarch64=6.3* libnvinfer-safe6-cross-aarch64=6.3* libnvinfer-safe-dev-cross-aarch64=6.3* ; [error]: exit status 100; [deb_path]: /home/mehrdad/Downloads/nvidia/sdkm_downloads/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724_1-1_amd64.deb

Error:

E: Version ‘6.3*’ for ‘libnvinfer-dev-cross-aarch64’ was not found
E: Version ‘6.3*’ for ‘libnvinfer-plugin-dev-cross-aarch64’ was not found
E: Version ‘6.3*’ for ‘libnvonnxparsers-dev-cross-aarch64’ was not found
E: Version ‘6.3*’ for ‘libnvparsers-dev-cross-aarch64’ was not found
E: Version ‘6.3*’ for ‘libnvinfer-consistency-dev-cross-aarch64’ was not found
E: Unable to locate package libnvinfer-safe-dev-cross-aarch64

Full terminal details:

12:37:32 INFO: TensorRT Cross-Compile for Linux: deb file /home/mehrdad/Downloads/nvidia/sdkm_downloads/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724_1-1_amd64.deb, package name [nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724], package version [1-1]
12:37:32 INFO: TensorRT Cross-Compile for Linux: infer package info from file name nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724_1-1_amd64.deb [ name: nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724, version: 1-1 ]
12:37:32 INFO: TensorRT Cross-Compile for Linux: exec_command: sudo -E apt-get install -y --allow-downgrades ‘/home/mehrdad/Downloads/nvidia/sdkm_downloads/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724_1-1_amd64.deb’
12:37:32 INFO: TensorRT Cross-Compile for Linux: Reading package lists…
12:37:33 INFO: TensorRT Cross-Compile for Linux: Building dependency tree…
12:37:33 INFO: TensorRT Cross-Compile for Linux: Reading state information…
12:37:33 INFO: TensorRT Cross-Compile for Linux: nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724 is already the newest version (1-1).
12:37:33 INFO: TensorRT Cross-Compile for Linux: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
12:37:33 INFO: TensorRT Cross-Compile for Linux: no repoPackageInfo found in additionalParameters.
12:37:33 INFO: TensorRT Cross-Compile for Linux: infer package info from file name nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724_1-1_amd64.deb [ name: nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724, version: 1-1 ]
12:37:33 INFO: TensorRT Cross-Compile for Linux: exec_command: dpkg -L nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724 | grep ‘.pub$’ | tr -d ‘\n’
12:37:33 INFO: TensorRT Cross-Compile for Linux: exec_command: sudo apt-key add /var/nv-tensorrt-repo-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724/7fa2af80.pub
12:37:33 : TensorRT Cross-Compile for Linux: Warning: apt-key output should not be parsed (stdout is not a terminal)
12:37:33 INFO: TensorRT Cross-Compile for Linux: OK
12:37:33 INFO: TensorRT Cross-Compile for Linux: exec_command: sudo apt-get check
12:37:33 INFO: TensorRT Cross-Compile for Linux: Reading package lists…
12:37:33 INFO: TensorRT Cross-Compile for Linux: Building dependency tree…
12:37:33 INFO: TensorRT Cross-Compile for Linux: Reading state information…
12:37:34 INFO: TensorRT Cross-Compile for Linux: exec_command: sudo apt-get update; sleep 0.5; sudo apt-get -y install libnvinfer6-cross-aarch64=6.3* libnvinfer-dev-cross-aarch64=6.3* libnvinfer-plugin6-cross-aarch64=6.3* libnvinfer-plugin-dev-cross-aarch64=6.3* libnvonnxparsers6-cross-aarch64=6.3* libnvonnxparsers-dev-cross-aarch64=6.3* libnvparsers6-cross-aarch64=6.3* libnvparsers-dev-cross-aarch64=6.3* libnvinfer-consistency6-cross-aarch64=6.3* libnvinfer-consistency-dev-cross-aarch64=6.3* libnvinfer-safe6-cross-aarch64=6.3* libnvinfer-safe-dev-cross-aarch64=6.3*
12:37:34 INFO: TensorRT Cross-Compile for Linux: Get:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Ign:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 Release [574 B]
12:37:34 INFO: TensorRT Cross-Compile for Linux: Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 Release [574 B]
12:37:34 INFO: TensorRT Cross-Compile for Linux: Hit:3 http://packages.ros.org/ros/ubuntu bionic InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Hit:4 Index of /ubuntu bionic InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Get:5 Index of /ubuntu bionic-security InRelease [88.7 kB]
12:37:34 INFO: TensorRT Cross-Compile for Linux: Get:6 Index of /ubuntu bionic-updates InRelease [88.7 kB]
12:37:34 INFO: TensorRT Cross-Compile for Linux: Hit:8 https://linux.teamviewer.com/deb stable InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Hit:9 https://linux.teamviewer.com/deb preview InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Ign:10 Index of /compute/cuda/repos/ubuntu1604/x86_64 InRelease
12:37:34 INFO: TensorRT Cross-Compile for Linux: Hit:11 Index of /compute/cuda/repos/ubuntu1604/x86_64 Release
12:37:34 INFO: TensorRT Cross-Compile for Linux: Get:12 Index of /ubuntu bionic-backports InRelease [74.6 kB]
12:37:34 INFO: TensorRT Cross-Compile for Linux: Fetched 252 kB in 1s (472 kB/s)
12:37:35 INFO: TensorRT Cross-Compile for Linux: Reading package lists…
12:37:36 INFO: TensorRT Cross-Compile for Linux: Reading package lists…
12:37:36 INFO: TensorRT Cross-Compile for Linux: Building dependency tree…
12:37:36 INFO: TensorRT Cross-Compile for Linux: Reading state information…
12:37:36 ERROR: TensorRT Cross-Compile for Linux: E: Version ‘6.3*’ for ‘libnvinfer-dev-cross-aarch64’ was not found
12:37:36 INFO: TensorRT Cross-Compile for Linux: E: Version ‘6.3*’ for ‘libnvinfer-plugin-dev-cross-aarch64’ was not found
12:37:36 INFO: TensorRT Cross-Compile for Linux: E: Version ‘6.3*’ for ‘libnvonnxparsers-dev-cross-aarch64’ was not found
12:37:36 INFO: TensorRT Cross-Compile for Linux: E: Version ‘6.3*’ for ‘libnvparsers-dev-cross-aarch64’ was not found
12:37:36 INFO: TensorRT Cross-Compile for Linux: E: Version ‘6.3*’ for ‘libnvinfer-consistency-dev-cross-aarch64’ was not found
12:37:36 INFO: TensorRT Cross-Compile for Linux: E: Unable to locate package libnvinfer-safe-dev-cross-aarch64
12:37:36 INFO: TensorRT Cross-Compile for Linux: [ Package Install Finished with Error ]
12:37:36 INFO: TensorRT Cross-Compile for Linux: [host] [ 364.00 KB released. Disk Avail: 294.86 GB ]
12:37:36 INFO: TensorRT Cross-Compile for Linux: [ NV_TENSORRT_HOST_CROSS_LINUX_COMP Install took 4s ]
12:37:36 ERROR: TensorRT Cross-Compile for Linux: [error]: Error when apt install failed; [exec_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y install libnvinfer6-cross-aarch64=6.3* libnvinfer-dev-cross-aarch64=6.3* libnvinfer-plugin6-cross-aarch64=6.3* libnvinfer-plugin-dev-cross-aarch64=6.3* libnvonnxparsers6-cross-aarch64=6.3* libnvonnxparsers-dev-cross-aarch64=6.3* libnvparsers6-cross-aarch64=6.3* libnvparsers-dev-cross-aarch64=6.3* libnvinfer-consistency6-cross-aarch64=6.3* libnvinfer-consistency-dev-cross-aarch64=6.3* libnvinfer-safe6-cross-aarch64=6.3* libnvinfer-safe-dev-cross-aarch64=6.3* ; [error]: exit status 100; [deb_path]: /home/mehrdad/Downloads/nvidia/sdkm_downloads/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724_1-1_amd64.deb
12:37:36 ERROR: TensorRT Cross-Compile for Linux: command terminated with error
12:37:36 SUMMARY: TensorRT Cross-Compile for Linux: First Error: Failed to install debian repository file [host]

Thanks!
Zeus

Hi @pola5392 ,

Please try if below command helps on the problem. Thanks.

sudo dpkg -P libnvinfer5-cross-aarch64

Hi @VickNV, thank you for responding,
I tried running this command before reflashing and I got no error. I didn’t record the output of the command and I reboot my host so I don’t know what it was. I tried reflashing and I get the same error on the terminal when SDK tried to install TensorRT XC. When I run that command again I get this output
dpkg: warning: ignoring request to remove libnvinfer5-cross-aarch64 which isn't installed

Would you recommend a different approach?

Thanks,
Zeus

Please compress and attach ~/.nvsdkm directory for our analysis. Thanks.

Here it is..nvsdkm (copy).zip (748.2 KB)

Thanks. I’ll check it and get back to you.

Please help to provide the outputs of the following two commands. Thanks.

ls /var
ls /var/nv-tensorrt-repo*

From ls /var :

backups
cache
crash
cuda-repo-10-2-local-10.2.187-440.101
cuda-repo-10-2-local-10.2.187-cross-aarch64
cuda-repo-10-2-local-10.2.19-430.17
cuda-repo-10-2-local-10.2.19-cross-aarch64
cuda-repo-10-2-local-10.2.89-440.33.01
cuda-repo-ubuntu1804-11-2-local
lib
local
lock
log
mail
metrics
nv-tensorrt-repo-cuda10.2-trt5.1.4.2-ga-20190506
nv-tensorrt-repo-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724
nv-tensorrt-repo-cuda10.2-trt6.3.1.3-x86-host-ga-20200724
NX
opt
run
snap
spool

From ls /var/nv-tensorrt-repo* :

/var/nv-tensorrt-repo-cuda10.2-trt5.1.4.2-ga-20190506:
7fa2af80.pub
graphsurgeon-tf_5.1.4-1+cuda10.2_amd64.deb
libcudnn7_7.5.1.14-1+cuda10.2_amd64.deb
libcudnn7-dev_7.5.1.14-1+cuda10.2_amd64.deb
libgie-dev_5.1.4-1+cuda10.2_all.deb
libnvinfer5_5.1.4-1+cuda10.2_amd64.deb
libnvinfer-dev_5.1.4-1+cuda10.2_amd64.deb
libnvinfer-samples_5.1.4-1+cuda10.2_all.deb
Packages.gz
python3-libnvinfer_5.1.4-1+cuda10.2_amd64.deb
python3-libnvinfer-dev_5.1.4-1+cuda10.2_amd64.deb
python-libnvinfer_5.1.4-1+cuda10.2_amd64.deb
python-libnvinfer-dev_5.1.4-1+cuda10.2_amd64.deb
Release
Release.gpg
tensorrt_5.1.4.2-1+cuda10.2_amd64.deb
uff-converter-tf_5.1.4-1+cuda10.2_amd64.deb

/var/nv-tensorrt-repo-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724:
7fa2af80.pub
libnvinfer6-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-consistency6-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-consistency-dev-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-dev-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-doc_6.3.1-1+cuda10.2_all.deb
libnvinfer-plugin6-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-plugin-dev-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-safe6-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-safe-dev-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvinfer-samples_6.3.1-1+cuda10.2_all.deb
libnvonnxparsers6-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvonnxparsers-dev-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvparsers6-cross-aarch64_6.3.1-1+cuda10.2_all.deb
libnvparsers-dev-cross-aarch64_6.3.1-1+cuda10.2_all.deb
Packages.gz
Release
Release.gpg
tensorrt-cross-aarch64_6.3.1.3-1+cuda10.2_all.deb

/var/nv-tensorrt-repo-cuda10.2-trt6.3.1.3-x86-host-ga-20200724:
7fa2af80.pub
graphsurgeon-tf_6.3.1-1+cuda10.2_amd64.deb
libnvinfer6_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-bin_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-consistency6_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-consistency-dev_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-dev_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-doc_6.3.1-1+cuda10.2_all.deb
libnvinfer-plugin6_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-plugin-dev_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-safe6_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-safe-dev_6.3.1-1+cuda10.2_amd64.deb
libnvinfer-samples_6.3.1-1+cuda10.2_all.deb
libnvonnxparsers6_6.3.1-1+cuda10.2_amd64.deb
libnvonnxparsers-dev_6.3.1-1+cuda10.2_amd64.deb
libnvparsers6_6.3.1-1+cuda10.2_amd64.deb
libnvparsers-dev_6.3.1-1+cuda10.2_amd64.deb
Packages.gz
python3-libnvinfer_6.3.1-1+cuda10.2_amd64.deb
python3-libnvinfer-dev_6.3.1-1+cuda10.2_amd64.deb
python-libnvinfer_6.3.1-1+cuda10.2_amd64.deb
python-libnvinfer-dev_6.3.1-1+cuda10.2_amd64.deb
Release
Release.gpg
tensorrt_6.3.1.3-1+cuda10.2_amd64.deb
uff-converter-tf_6.3.1-1+cuda10.2_amd64.deb

Our team will analyze it and let you know. Thanks.

1 Like

In your ~/.nvsdkm/logs/DRIVE_OS_5.2.0.0_SDK_Linux_OS/NV_TENSORRT_HOST_CROSS_LINUX_COMP.log,
“sudo apt-get update” output doesn’t contain any /var/nv-tensorrt-repo-cuda10.2-trt6.3.1.3-d5l-cross-ga-20200724 lines. It’s abnormal and should be an environment issue.

A possible solution is to manually remove all cuda/tensorrt packages. Make sure the output of “dpkg -l | grep cuda” command is absolutely empty. Then retry installation with SDKM. Thanks.

This worked. Thank you!

1 Like

Hi,
I have the same problem.
Where can I locate the cuda/tensorrt packages?

Hi, @bellhsu

Please help to create a new topic linked to this topic. Thanks.

Where can I locate the cuda/tensorrt packages?

Hi @francisca.molero
Let’s discuss your question on your own topic. Thanks. Sorry for any inconvenience.

Ok, I have already been able to find cuda/tensorrt packages but I have the same problem:
“Unable to locate package libcudnn7-dev-cross-aarch64”