sudo apt-get install letsencrypt
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:
` letsencrypt : Depends: python-letsencrypt (= 0.4.1-1) but it is not going to be installed
Depends: python:any (>= 2.7~)
E: Unable to correct problems, you have held broken packages.`
Remove the python package from ubuntu
and install python-dev
sudo apt-get remove python
sudo apt-get install python-dev
This should solve the letsencrypt installation
Related
Hi I want to install python3-libnvinfer and python3-libnvinfer-dev package on Ubuntu20.04 with python3.8
my goal is install TensorRT-8 on ubuntu 20.04
I do the exact installaion steps on nvidia site.
bu when I try this command:
sudo apt-get install python3-libnvinfer
I'll get this Error:
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.7) but 3.8.2-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
I also try this with Python3.7 and don't fix...
I Can't Install Python3.10 because seems not compatible with Ubuntu 20.04.
I tried installing TensorRT on Ubuntu 20.04 and I expect it to install correctly with python 3.8 and also with Python3.7
I Try:
sudo apt-get install python3-libnvinfer-dev
and
sudo apt-get install python3-libnvinvfer
but I ran into an Error described above.
To install Docker I need to run:
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
which requires software-properties-common.
When I try to install software-properties-common with sudo apt-get install, the following error occurs:
The following packages have unmet dependencies:
software-properties-common : Depends: python3-software-properties (= 0.96.20.9) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So then I try to install python3-software-properties and this shows:
The following packages have unmet dependencies:
python3-software-properties : Depends: python3-pycurl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And if I try to install python3-pycurl:
The following packages have unmet dependencies:
python3-pycurl : 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.
So does this mean my Python version has to be <3.6 ? This seems to be really weird. Thanks in advance for any help.
Turns out the sources in my sources.list were broken. Previously I was using Aliyun's sources (since I'm located in China) which caused the errors above. Switching to Tsinghua's sources fixed the issue.
I think I have indigo...
I followed the instructions: https://wiki.ros.org/catkin#Installing_catkin
Can someone please help me with this? I used a virtualbox to run Ubuntu 18.04. Can catkin work with indigo? I'm lost...
notsotechnical#notsotechnical-VirtualBox:~/build/build$ **sudo apt-get install ros-indigo-catkin**
[sudo] password for notsotechnical:
Reading package lists... Done
Building dependency tree
Reading state information... Done
**E: Unable to locate package ros-indigo-catkin**
notsotechnical#notsotechnical-VirtualBox:~/build/build$ sudo apt-get install cmake python-catkin-pkg python-empy python-nose python-setuptools libgtest-dev build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
python-setuptools is already the newest version (39.0.1-2).
libgtest-dev is already the newest version (1.8.0-6).
python-empy is already the newest version (3.3.2-1build1).
python-nose is already the newest version (1.3.7-3).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
python-catkin-pkg is already the newest version (0.4.13-100).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
notsotechnical#notsotechnical-VirtualBox:~/build/build$ **apt --fix-broken install**
**E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?**
notsotechnical#notsotechnical-VirtualBox:~/build/build$
If you still have the problem:
Ubuntu 18.04 runs with ros melodic, not indigo. SO follow your link, but on the very top you need to switch to melodic instead of indigo.
As be mentioned above, I tried to install python-pip and python-dev with command:
sudo apt-get install python-pip python-dev
then I get:
sudo apt-get install python-pip python-dev
[sudo] password for tailongnguyen:
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:
python-dev : Depends: python (= 2.7.11-1) but 2.7.12-1 is to be installed
python-pip : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What I need to do now?
I tried
sudo apt-get update
sudo apt-get upgrade
but it didn't help
See this link. This resolved this issue, though I got similar issue with apache2.2-common after fixing this.
https://askubuntu.com/questions/275861/problem-installing-python-dev
I wanted to install Python 2.7.9 on my Debian Wheezy and I've download the .deb file from Debian site. Unfortunately now I apparently have caused a bug, this is what I have after an apt-get upgrade:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython2.7 : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
python2.7 : Depends: python2.7-minimal (= 2.7.9-2) but 2.7.3-6+deb7u2 is installed
Depends: libpython2.7-stdlib (= 2.7.9-2) but it is not installable
python2.7-dev : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
E: Unmet dependencies. Try using -f.
If I try an 'apt-get -f install' it asks me to remove more than 2GB from my OS and I don't want this. Any idea?
The right way when working with distributions such as Debian is two work with the official repositories, that is, using apt-get install rather than downloading and installing with dpkg -i.
If you work directly with dpkg, important information that apt needs is missing.
My suggestion for you is this-
1- Undo you changes by using dpkg -P on the package you installed manually
2- Run apt-get update
3- look for the package with apt- apt-cache search python=<version> or without version.
4- If you don't find the wanted version, you can use other official Debian repositories (include them in you apt sources list files)
Fixed this way: as basically the problem was
python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
I've downloaded python version 2.7.3-6+deb7u2 and with a simple dpkg -i I have installed it. The downgrading as been automatic