How to install cuda-license-10.1 for TensorRT 6?

$ sudo dpkg -i nv-tensorrt-repo-ubuntu1804-cuda10.1-trt6.0.1.5-ga-20190913_1-1_amd64.deb
$ sudo apt-key add /var/nv-tensorrt-repo-cuda10.1-trt6.0.1.5-ga-20190913/7fa2af80.pub
$ sudo apt-get update
$ sudo apt-get install tensorrt 
Reading package lists... Done
Building dependency tree       
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:
 tensorrt : Depends: libnvinfer6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-plugin6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvparsers6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvonnxparsers6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-bin (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-plugin-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvparsers-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvonnxparsers-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-samples (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-doc (= 6.0.1-1+cuda10.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The process need:

  • cuda-cudart-dev-10-1
  • cuda-license-10-1
  • libclublas10.1
    and others

I try to install CUDA-ToolKit 10.1 Update 2 on Ubuntu 18.04.

Errors were encountered while processing:
 /tmp/apt-dpkg-install-jRge5V/25-libcublas-dev_10.2.1.243-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libnvidia-common-430
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libcublas-dev
The following NEW packages will be installed:
  libcublas-dev
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
71 not fully installed or removed.
Need to get 0 B/38,9 MB of archives.
After this operation, 109 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 file:/var/cuda-repo-10-1-local-10.1.243-418.87.00  libcublas-dev 10.2.1.243-1 [38,9 MB]
(Reading database ... 369175 files and directories currently installed.)
Preparing to unpack .../libcublas-dev_10.2.1.243-1_amd64.deb ...
Unpacking libcublas-dev (10.2.1.243-1) ...
dpkg: error processing archive /var/cuda-repo-10-1-local-10.1.243-418.87.00/./libcublas-dev_10.2.1.243-1_amd64.deb (--unpack):
 <b>trying to overwrite '/usr/lib/x86_64-linux-gnu/libcublas_static.a', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1</b>
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cuda-repo-10-1-local-10.1.243-418.87.00/./libcublas-dev_10.2.1.243-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: /var/cuda-repo-10-0-local-10.0.326-410.108/./libcublas-dev_10.1.0.25940999-1_amd64.deb: trying to overwrite '/usr/lib/x86_64-linux-gnu/stubs/libcublas.so', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1

How to resolve this? Thank you.

Warmest Regards,
Suryadi

I have the same problem ^. Installed Cuda 10.1 - verified it works, and everything. Trying to install TensorRT.

Solved the problem by installing CUDA 10.1 through the .deb route as opposed to the run file.

I had the same problem. I had to remove the package sources from my dpkg list, and just used the local repo.

HI @aa69kp6, I’ve encountered the same problem, was wondering if you have the list of commands that you used? thanks

For Ubuntu 18.04; If you add below line into Softwares&Updates - Other Software tab, then try to reinstall tensorRT (If cuda is not installed by using deb file, this link will be missing):

deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /