A friend tried to help another friend on his Ubuntu 18.04 installation and that somehow involved (as far as I can figure) removing Python 2. This seems to have resulted in poor
dpkg -i being broken. To try to fix things, I was thinking initially that we could manually download the Python 2 DEB package (https://packages.ubuntu.com/bionic/amd64/python2.7/download) but then we, of course, ran into the problem of getting
dpkg -i to run (
py_compile.py syntax errors).
So now I’m thinking that we could create a virtual environment with its own wee Python 2 executable installed and tell the system to use that (by simlinking
/usr/bin/python to the virtual environment Python executable) in order to run
dpkg -i on the proper Python 2 package we have downloaded here.
Would this screw things up more or is this a plausible thing to try?