I am having problems installing/uninstalling things with apt. I think this is because I have unistalled python and apt is trying to use it. I have miniconda, but when I use apt it is not accessing this miniconda version. How do I make it do so?
$ ls -l /usr/bin/\*python\* /usr/bin/python -> /home/neiltheory/miniconda2/bin/python /usr/bin/python2 -> python2.7 /usr/bin/python2.7 /usr/bin/python3 -> /home/neiltheory/miniconda2/bin/python /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python3m -> python3.6m /usr/bin/x86_64-linux-gnu-python2.7-config /usr/bin/x86_64-linux-gnu-python-config -> x86_64-linux-gnu-python2.7-config
when I do:
sudo apt remove python3.6
I get a bunch of dpkg errors and a suggestion to do:
apt --fix-broken install
...which also produces a bunch of python errors.
After re building the appropriate system pythons from source code and installing them in the same place
dpkg started to behave themselves again. However all was not entirely well - some of my programs which used python just didn't work 100% as they should. Specifically the terminal app
terminator continually crashed and a physics program 'MadGraph' didn't function fully either. Not being a python expert and needing desperately to continue my work I nuked the lot, installed a fresh Ubuntu and vowed never to touch the system python installations again. Lesson learned, but perhaps solution not yet found.
I'm not sure of the etiquette for answering ones own question, and I'm not sure if this even constitutes an answer of if it's a further question:
QUESTION: Is there a better way of dealing with this than doing a complete reinstall?