Ackages have unmet dependencies: libnvinfer-samples

Environment

TensorRT Version: 10.0.1
GPU Type: GeForce RTX 2050
Nvidia Driver Version: 565.90
CUDA Version: 12.4
CUDNN Version: 8.9.7
Operating System + Version: UBUNTU 22.04 WSL2
Python Version (if applicable): 3.10

Description

I try install on my wsl2 machine (locally I don’t want use docker) the TensoRT 10.0.1.
I succussed to install coda and Cudnn here is my Santy check:

nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Feb_27_16:19:38_PST_2024
Cuda compilation tools, release 12.4, V12.4.99
Build cuda_12.4.r12.4/compiler.33961263_0
cat /usr/include/x86_64-linux-gnu/cudnn_v*.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 8
#define CUDNN_MINOR 9
#define CUDNN_PATCHLEVEL 7
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

/* cannot use constexpr here since this is a C-only file */

I follow TensorRT NVIDIA tutorial in the step sudo apt-get install tensorrt I get the following error:

sudo apt-get install tensorrt
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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-samples : Depends: libcudart.so.12-dev but it is not installable or
                               cuda-cudart-cross-amd64-12-4 but it is not installable
                      Depends: cuda-nvcc-12-1 but it is not installable or
                               cuda-nvcc-12-2 but it is not installable or
                               cuda-nvcc-12-3 but it is not installable or
                               cuda-nvcc-12-4 but it is not installable or
                               cuda-nvcc-12-5 but it is not installable or
                               cuda-nvcc-12-6 but it is not installable or
                               cuda-nvcc-12-7 but it is not installable or
                               cuda-nvcc-12-8 but it is not installable or
                               cuda-nvcc-12-9 but it is not installable or
                               cuda-nvcc-12-0 but it is not installable
E: Unable to correct problems, you have held broken packages.

I will glad the any help.

1 Like

have you fix it?i meet the same question.