Skip to content

Error when running "Install cuDNN and TensorRT Dev" ansible task #6389

@all4dich

Description

@all4dich

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

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"
    ]
}

Expected behavior

When runnig setup-dev-env.sh file, it has to return exit code 0 with the success message.

Actual behavior

After running setup-dev-env.sh file, I got this message

#13 741.9 TASK [autoware.dev_env.tensorrt : Install cuDNN and TensorRT] ******************
#13 809.8 changed: [localhost]
#13 809.8
#13 809.8 TASK [autoware.dev_env.tensorrt : Install cuDNN and TensorRT Dev] **************
#13 814.9 fatal: [localhost]: FAILED! => {"cache_update_time": 1755054062, "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"]}
#13 814.9
#13 814.9 PLAY RECAP *********************************************************************
#13 814.9 localhost                  : ok=45   changed=26   unreachable=0    failed=1    skipped=2    rescued=0    ignored=0
#13 814.9
#13 814.9 Failed.
#13 ERROR: process "/bin/sh -c ./setup-dev-env.sh -y" did not complete successfully: exit code: 1

Steps to reproduce

  1. cd ~/ && git clone -b release/v1.0 https://github.com/autowarefoundation/autoware/
  2. cd ~/autoware/ && ./setup-dev-env.sh

Versions

  • OS
    ubuntu@santarosa:~$ lsb_release  -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 22.04.5 LTS
    Release:	22.04
    Codename:	jammy
    ubuntu@santarosa:~$
    
  • Autoware
    b8531f2 (HEAD -> release/v1.0) fix(build):Resolve TensorRT header package issues
    

Possible causes

  • libnvinfer-dev
    • It needs libnvinfer-headers-dev to be version 8.6.1.6-1+cuda12.0, but apt is trying to install a much newer version (10.13.2.6-1+cuda13.0)
  • libnvinfer-plugin-dev
    • It has the same problem with its -headers-plugin-dev dependency.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions