Error installing TensorRT Cross-Compile for Linux

Hi
Installing Drive AGX by SDK Manager, with Ubuntu 18.04.6 LTS.

I screenshots and log zipped in attached file, please help.

AGX_InstallFail.zip (526.5 KB)

Thanks
Bell

Hi, @bellhsu

Please help to provide some information by ticking the below checkboxes. Thanks.

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.6.1.8175
1.6.0.8170
other

Host Machine Version
native Ubuntu 18.04
other

Please compress ~/.nvsdkm on your host system and attach here for our analysis. Thanks.

Hi
Please find the .nvsdkm.zip attached.
.nvsdkm.zip (1.8 MB)

I am using

() sdkmanager_1.6.1-8175_amd64.deb
(
) Linux
() Ubuntu 18.04.6 LTS
(
) NVIDIA DRIVER AGX Xavier DevKit

Your error messages look like the messages in Error installing TensorRT on SDK Manager 1.4.

10:14:16.088 - error: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: E: Version '6.5*' for 'libnvinfer-dev-cross-aarch64' was not found
10:14:16.088 - info: Event: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host - error is: E: Version '6.5*' for 'libnvinfer-dev-cross-aarch64' was not found                                                                                    
10:14:16.088 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: E: Version '6.5*' for 'libnvinfer-plugin-dev-cross-aarch64' was not found
10:14:16.088 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: E: Version '6.5*' for 'libnvonnxparsers-dev-cross-aarch64' was not found
10:14:16.088 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: E: Version '6.5*' for 'libnvparsers-dev-cross-aarch64' was not found
10:14:16.088 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: E: Unable to locate package libnvinfer-consistency-dev-cross-aarch64
10:14:16.088 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: E: Unable to locate package libnvinfer-safe-dev-cross-aarch64
10:14:16.090 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: [ Package Install Finished with Error ]
10:14:16.090 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: [host] [ 352.00 KB used. Disk Avail: 277.64 GB ]
10:14:16.090 - info: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: [ NV_TENSORRT_HOST_CROSS_LINUX_COMP Install took 4s ]
10:14:16.090 - error: NV_TENSORRT_HOST_CROSS_LINUX_COMP@host: [error]: Error when apt install failed; [exec_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install libnvinfer6-cross-aarch64=6.5* libnvinfer-dev-cross-aarch64=6.5* libnvinfer-plugin6-cross-aarch64=6.5* libnvinfer-plugin-dev-cross-aarch64=6.5* libnvonnxparsers6-cross-aarch64=6.5* libnvonnxparsers-dev-cross-aarch64=6.5* libnvparsers6-cross-aarch64=6.5* libnvparsers-dev-cross-aarch64=6.5* libnvinfer-consistency6-cross-aarch64=6.5* libnvinfer-consistency-dev-cross-aarch64=6.5* libnvinfer-safe6-cross-aarch64=6.5* libnvinfer-safe-dev-cross-aarch64=6.5* ; [error]: exit status 100; [deb_path]: /home/adasgen4/Downloads/nvidia/sdkm_downloads/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-d5l-cross-ga-20210409_1-1_amd64.deb

Please try the solution there prior to installation with sdkmanager. Thanks.

Hi VickNV,

I tried:
~$ sudo dpkg -P libnvinfer5-cross-aarch64
dpkg: dependency problems prevent removal of libnvinfer5-cross-aarch64:
libnvinfer-dev-cross-aarch64 depends on libnvinfer5-cross-aarch64 (= 5.1.4-1+cuda10.2).

dpkg: error processing package libnvinfer5-cross-aarch64 (–purge):
dependency problems - not removing
Errors were encountered while processing:
libnvinfer5-cross-aarch64

~$ sudo dpkg -P libnvinfer5-cross-aarch64
dpkg: dependency problems prevent removal of libnvinfer5-cross-aarch64:
libnvinfer-dev-cross-aarch64 depends on libnvinfer5-cross-aarch64 (= 5.1.4-1+cuda10.2).

dpkg: error processing package libnvinfer5-cross-aarch64 (–purge):
dependency problems - not removing
Errors were encountered while processing:
libnvinfer5-cross-aarch64

Maybe I have looked at wrong solution?

This time, I did
~$ sudo apt-get purge --auto-remove ‘cuda*’

lots of cuda packages removed, but I still get some not able to be removed?

~$ sudo dpkg --list | grep cuda
ii graphsurgeon-tf 6.5.0-1+cuda10.2 amd64 GraphSurgeon for TensorRT package
ii libcudnn7 7.6.6.415-1+cuda10.2 amd64 cuDNN runtime libraries
ii libcudnn7-cross-aarch64 7.6.6.415-1+cuda10.2 all cuDNN runtime libraries
ii libcudnn7-dev 7.6.6.415-1+cuda10.2 amd64 cuDNN development libraries and headers
ii libcudnn7-dev-cross-aarch64 7.6.6.415-1+cuda10.2 all cuDNN cross development libraries and headers
ii libcudnn7-samples 7.6.6.415-1+cuda10.2 amd64 cuDNN samples
rc nv-tensorrt-repo-ubuntu1804-cuda10.2-trt5.1.4.2-ga-20190506 1-1 amd64 nv-tensorrt repository configuration files
rc nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-d5l-cross-ga-20210409 1-1 amd64 nv-tensorrt repository configuration files
rc nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409 1-1 amd64 nv-tensorrt repository configuration files
ii uff-converter-tf 6.5.0-1+cuda10.2 amd64 UFF converter for TensorRT package

What’s your command to remove them? What’s the failure output?

To remove the packages, I used
sudo apt-get purge --auto-remove ‘cuda*’
also tried
sudo apt --purge remove ‘cuda*’
sudo apt-get remove ‘cuda*’
sudo apt-get purge ‘cuda*’
sudo apt-get autoremove
sudo apt-get clean

but, sudo dpkg --list | grep cuda
still have some output as mentioned previously

1 Like

Please check if the installation can complete successfully now?

Hi VickNV,
Still the same problem, I just tried again, please see the attached screenshot:

Can’t you remove all the packages and try again? e.g. below command should be able to remove libcudnn7* packages.

$ sudo apt purge “libcudnn7

I removed all the packages with “cuda” now, the $ sudo dpkg --list | grep cuda is empty.
But, still get the same error as previous message shown.

ERRORS on:
08:34:52 SUMMARY: TensorRT x86 - host: Depends on failed component
08:36:42 SUMMARY: TensorRT Cross-Compile for Linux - host: First Error: Depends on failed component

Please share current ~/.nvsdkm for our analysis. Thanks.

Please find the attached.

nvsdkm-2021-10-13.zip (1.8 MB)

These are your current error messages.

08:19:20.071 - error: NV_TENSORRT_HOST_COMP@host: W: Repository is broken: nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409:amd64 (= 1-1) has no Size information
08:19:20.071 - info: Event: NV_TENSORRT_HOST_COMP@host - error is: W: Repository is broken: nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409:amd64 (= 1-1) has no Size information
08:19:20.074 - info: NV_TENSORRT_HOST_COMP@host: no repoPackageInfo found in additionalParameters.
08:19:20.074 - info: NV_TENSORRT_HOST_COMP@host: infer package info from file name nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409_1-1_amd64.deb [ name: nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409, version: 1-1 ]
08:19:20.074 - info: NV_TENSORRT_HOST_COMP@host: exec_command: dpkg -L nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409 | grep '\.pub$' | tr -d '\n'
08:19:20.086 - info: NV_TENSORRT_HOST_COMP@host: exec_command: sudo apt-key add /var/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409/7fa2af80.pub
08:19:20.120 - warn: NV_TENSORRT_HOST_COMP@host: Warning: apt-key output should not be parsed (stdout is not a terminal)
08:19:20.198 - info: NV_TENSORRT_HOST_COMP@host: OK                             
08:19:20.203 - info: NV_TENSORRT_HOST_COMP@host: exec_command: sudo apt-get check
08:19:20.259 - info: NV_TENSORRT_HOST_COMP@host: Reading package lists...       
08:19:20.459 - info: NV_TENSORRT_HOST_COMP@host: Building dependency tree...    
08:19:20.466 - info: NV_TENSORRT_HOST_COMP@host: Reading state information...   
08:19:20.492 - info: NV_TENSORRT_HOST_COMP@host: exec_command: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install graphsurgeon-tf=6.5* uff-converter-tf=6.5* libnvinfer6=6.5* libnvinfer-dev=6.5* libnvinfer-samples=6.5* libnvinfer-bin=6.5* libnvinfer-plugin6=6.5* libnvinfer-plugin-dev=6.5* libnvinfer-doc=6.5* libnvonnxparsers6=6.5* libnvonnxparsers-dev=6.5* libnvparsers6=6.5* libnvparsers-dev=6.5* python3-libnvinfer=6.5* python3-libnvinfer-dev=6.5* python-libnvinfer=6.5* python-libnvinfer-dev=6.5* tensorrt=6.5* 
08:19:20.533 - info: NV_TENSORRT_HOST_COMP@host: Get:1 file:/var/cuda-repo-ubuntu1804-10-2-local  InRelease
08:19:20.537 - info: NV_TENSORRT_HOST_COMP@host: Ign:1 file:/var/cuda-repo-ubuntu1804-10-2-local  InRelease
08:19:20.537 - info: NV_TENSORRT_HOST_COMP@host: Get:2 file:/var/cuda-repo-ubuntu1804-10-2-local  Release [564 B]
08:19:20.540 - info: NV_TENSORRT_HOST_COMP@host: Get:2 file:/var/cuda-repo-ubuntu1804-10-2-local  Release [564 B]
08:19:20.706 - info: NV_TENSORRT_HOST_COMP@host: Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
08:19:20.717 - info: NV_TENSORRT_HOST_COMP@host: Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease
08:19:20.795 - info: NV_TENSORRT_HOST_COMP@host: Hit:6 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
08:19:20.875 - info: NV_TENSORRT_HOST_COMP@host: Hit:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
08:19:22.049 - info: NV_TENSORRT_HOST_COMP@host: Reading package lists...       
08:19:22.642 - info: NV_TENSORRT_HOST_COMP@host: Reading package lists...       
08:19:22.841 - info: NV_TENSORRT_HOST_COMP@host: Building dependency tree...    
08:19:22.847 - info: NV_TENSORRT_HOST_COMP@host: Reading state information...   
08:19:22.942 - error: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer6
08:19:22.942 - info: Event: NV_TENSORRT_HOST_COMP@host - error is: E: Unable to locate package libnvinfer6
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer-dev
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer-samples
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer-bin
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer-plugin6
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer-plugin-dev
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvinfer-doc
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvonnxparsers6
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvonnxparsers-dev
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvparsers6
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package libnvparsers-dev
08:19:22.943 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package python3-libnvinfer
08:19:22.944 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package python3-libnvinfer-dev
08:19:22.944 - error: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package python-libnvinfer
08:19:22.944 - info: Event: NV_TENSORRT_HOST_COMP@host - error is: E: Unable to locate package python-libnvinfer
08:19:22.944 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package python-libnvinfer-dev
08:19:22.944 - info: NV_TENSORRT_HOST_COMP@host: E: Unable to locate package tensorrt
08:19:22.949 - info: NV_TENSORRT_HOST_COMP@host: [ Package Install Finished with Error ]
08:19:22.950 - info: NV_TENSORRT_HOST_COMP@host: [host] [ 542.08 MB used. Disk Avail: 295.39 GB ]
08:19:22.950 - info: NV_TENSORRT_HOST_COMP@host: [ NV_TENSORRT_HOST_COMP Install took 11s ]
08:19:22.950 - error: NV_TENSORRT_HOST_COMP@host: [error]: Error when apt install failed; [exec_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install graphsurgeon-tf=6.5* uff-converter-tf=6.5* libnvinfer6=6.5* libnvinfer-dev=6.5* libnvinfer-samples=6.5* libnvinfer-bin=6.5* libnvinfer-plugin6=6.5* libnvinfer-plugin-dev=6.5* libnvinfer-doc=6.5* libnvonnxparsers6=6.5* libnvonnxparsers-dev=6.5* libnvparsers6=6.5* libnvparsers-dev=6.5* python3-libnvinfer=6.5* python3-libnvinfer-dev=6.5* python-libnvinfer=6.5* python-libnvinfer-dev=6.5* tensorrt=6.5* ; [error]: exit status 100; [deb_path]: /home/adasgen4/Downloads/nvidia/sdkm_downloads/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt6.5.0.7-x86-host-ga-20210409_1-1_amd64.deb

Please try below commands and then relaunch SDK Manager to install.

$ rm /etc/apt/sources.list.d/*
$ rm -rf ~/.nvsdkm* ~/Downloads/nvidia/sdkm_downloads* ~/nvidia/nvidia_sdk*

relauch the SDK Manager, it’s still running, but already shown an error

SDK manager finished, still with same error:
08:17:11 ERROR: cuDNN Cross-Compile for Linux - host: command terminated with error
08:17:11 SUMMARY: TensorRT Cross-Compile for Linux - host: Depends on failed component

attach is the latest .nvsdkm

nvsdkm-2021-10-14.zip (255.5 KB)

Now, these are your relevant messages.

08:17:11.077 - error: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: E: Unable to locate package libcudnn7-cross-aarch64                                                                                                                       
08:17:11.078 - info: Event: NV_CUDNN_HOST_CROSS_LINUX_COMP@host - error is: E: Unable to locate package libcudnn7-cross-aarch64
08:17:11.078 - info: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: E: Unable to locate package libcudnn7-dev-cross-aarch64
08:17:11.080 - info: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: [ Package Install Finished with Error ]
08:17:11.080 - info: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: [host] [ 176.39 MB used. Disk Avail: 412.04 GB ]
08:17:11.080 - info: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: [ NV_CUDNN_HOST_CROSS_LINUX_COMP Install took 4s ]
08:17:11.080 - error: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: [error]: Error when apt install failed; [exec_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install libcudnn7-cross-aarch64=7.6* libcudnn7-dev-cross-aarch64=7.6* ; [error]: exit status 100; [deb_path]: /home/adasgen4/Downloads/nvidia/sdkm_downloads/cudnn-local-repo-cross-aarch64-d5l-7.6.6.415_1.0-1_all.deb
08:17:11.080 - info: Event: NV_CUDNN_HOST_CROSS_LINUX_COMP@host - error is: [error]: Error when apt install failed; [exec_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install libcudnn7-cross-aarch64=7.6* libcudnn7-dev-cross-aarch64=7.6* ; [error]: exit status 100; [deb_path]: /home/adasgen4/Downloads/nvidia/sdkm_downloads/cudnn-local-repo-cross-aarch64-d5l-7.6.6.415_1.0-1_all.deb
08:17:11.080 - info: NV_CUDNN_HOST_CROSS_LINUX_COMP@host:                       
08:17:11.080 - error: cmd finished failure SDKM_END_CODE_FAILURE_6f0eecfb-011f-4c82-935e-062c0b8d2d0d_48
08:17:11.080 - error: command error code: 48                                    
08:17:11.080 - info: Event: NV_CUDNN_HOST_CROSS_LINUX_COMP@host - error code is: 1048
08:17:11.081 - error: NV_CUDNN_HOST_CROSS_LINUX_COMP@host: command terminated with error
08:17:11.081 - info: Event: NV_CUDNN_HOST_CROSS_LINUX_COMP@host - error is: command terminated with error
08:17:11.082 - warn: Found known error: E: Unable to locate package libcudnn7-cross-aarch64  
[error]: Error when apt install failed; [exec_command]: sudo apt-get update; sleep 0.5; sudo apt-get -y --allow-downgrades install libcudnn7-cross-aarch64=7.6* libcudnn7-dev-cross-aarch64=7.6* ; [error]: exit status 100; [deb_path]: /home/adasgen4/Downloads/nvidia/sdkm_downloads/cudnn-local-repo-cross-aarch64-d5l-7.6.6.415_1.0-1_all.deb  
command terminated with error

Have you ever installed any other DRIVE SDK (e.g. 5.2.0) on this host system? If yes, please make sure uninstall host components of it prior to installing DRIVE OS 5.2.6.
Please refer to Repair and Uninstall.