I'm trying to install some packages with apt-get on ubuntu but I get a similar error on a couple of them. It would appear that there is something wrong with my python packages since I get the message "You have held broken packages".
~$ sudo apt-get install ranger 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: ranger : Depends: python:any (< 2.8) Depends: python:any (>= 2.7.5-5~) Recommends: python-chardet but it is not going to be installed E: Unable to correct problems, you have held broken packages. ~$ python -V Python 2.7.13 ~$ python3 -V Python 3.5.2
dpkg --get-selections | grep hold gives me nothing, so I can't seem to find what's being held.
As with the above output, both python 2, which came with ubuntu and python 3 which was installed by me is there, however I still get the error. Is this a symptom of me inproperly installing python, or is there another fix for this?