I'm trying to install a library required by nvidia TensorRt. The name of the library is python3-libnvinfer
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to install a library required by nvidia TensorRt. The name of the library is python3-libnvinfer
I get the following errors when I'm trying to install the above mentioned package.
Code:
sudo apt-get install python3-libnvinfer-dev
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:
python3-libnvinfer-dev : Depends: python3-libnvinfer (>= 4.1.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So tried to install python3-libnvinger. And it resulted in this.
Code:
sudo apt-get install python3-libnvinfer
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:
python3-libnvinfer : Depends: python3 (< 3.6) but 3.6.7-1~18.04 is to be installed
E: Unable to correct problems, you have held broken packages.
At this point I try installing python 3.5.7 and set it as my default python using update-alternatives command. Then aliased python3 to be python 3.5.7.
But the issue still persists. I'm planning to scrape/purge python3.6.8 and I don't know if it's a wise move as I've read some display managers use python and I'm not sure if it'll break anything. How should I go about this, Thanks.
what OS are you running and what apt sources do you have configured? If you have inxi installed, the output of the following command will provide that information:
what OS are you running and what apt sources do you have configured? If you have inxi installed, the output of the following command will provide that information:
Evo2.
I'm running an ubuntu spinoff, which is using ubuntu 18.04. I've added the following apt sources for instalhttps://tutorials.ubuntu.com/tutorial/tutorial-upgrading-ubuntu-desktophttps://tutorials.ubuntu.com/tutorial/tutorial-upgrading-ubuntu-desktopling the Nvidia cuda and TensoRrt
can you fix those URLs please, and post exactly what sources you have configured.
Also, what instructions/documentation are did you follow to lead you to add the additional sources?
can you fix those URLs please, and post exactly what sources you have configured.
Also, what instructions/documentation are did you follow to lead you to add the additional sources?
Evo2.
Hey, here you go, these were the sources that I used.
And they've listed it to be for 16.04 but again TensorRt was successfully installed. And I'm stuck at installation of python3-libnvinfer-dev which has a dependency on python3-libnvinfer which again has a dependency on python version <3.6 .
I've made python 3.5 as my default python version using update alternatives. Also tried linking python3 to be /usr/bin/python3.5.
it looks like the problem is that you are trying to install packages for older versions of Ubuntu. Why don't you use packages for 18.04? What is the output of the following commands:
Code:
apt-cache policy python3-libnvinfer-dev python3-libnvinfer
apt-cache show python3-libnvinfer-dev python3-libnvinfer
dpkg --audit
so it does look like you are trying to install packages for an older version of Ubuntu, presumably from a repo that you added following https://docs.nvidia.com/deeplearning...ide/index.html
Can you not use repos for Ubuntu 18.04?
so it does look like you are trying to install packages for an older version of Ubuntu, presumably from a repo that you added following https://docs.nvidia.com/deeplearning...ide/index.html
Can you not use repos for Ubuntu 18.04?
Evo2.
The pain is I need to set up those exact version of cuda and and Tensorrt, else I need to scrape the os and change to that version to set it up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.