fix(build): resolve TensorRT header package issues #6390
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
:Details:
Description
When trying to follow steps described in Source installation, I got this error on "Install cuDNN and TensorRT Dev" ansible task. This task is defined in ansible/roles/tensorrt/tasks/main.yaml#L14
{ "cache_update_time": 1755052261, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'libcudnn8-dev=8.9.5.29-1+cuda12.2' 'libnvinfer-dev=8.6.1.6-1+cuda12.0' 'libnvinfer-plugin-dev=8.6.1.6-1+cuda12.0' 'libnvparsers-dev=8.6.1.6-1+cuda12.0' 'libnvonnxparsers-dev=8.6.1.6-1+cuda12.0' --allow-downgrades --allow-change-held-packages' failed: E: Unable to correct problems, you have held broken packages.\n", "rc": 100, "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stderr_lines": [ "E: Unable to correct problems, you have held broken packages." ], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n libnvinfer-dev : Depends: libnvinfer-headers-dev (= 8.6.1.6-1+cuda12.0) but 10.13.2.6-1+cuda13.0 is to be installed\n libnvinfer-plugin-dev : Depends: libnvinfer-headers-plugin-dev (= 8.6.1.6-1+cuda12.0) but 10.13.2.6-1+cuda13.0 is to be installed\n", "stdout_lines": [ "Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " libnvinfer-dev : Depends: libnvinfer-headers-dev (= 8.6.1.6-1+cuda12.0) but 10.13.2.6-1+cuda13.0 is to be installed", " libnvinfer-plugin-dev : Depends: libnvinfer-headers-plugin-dev (= 8.6.1.6-1+cuda12.0) but 10.13.2.6-1+cuda13.0 is to be installed" ] }How was this PR tested?
Create
Dockerfileand use it to initiaze the environment for building autowareNotes for reviewers
None.
Effects on system behavior
None.