Skip to content

Instantly share code, notes, and snippets.

@jcopps
Created September 4, 2019 16:19
Show Gist options
  • Save jcopps/3a35a624ecf4da534f510ba2e24d4829 to your computer and use it in GitHub Desktop.
Save jcopps/3a35a624ecf4da534f510ba2e24d4829 to your computer and use it in GitHub Desktop.
python3 python2 inconsistency with config parser or os_error
https://unix.stackexchange.com/a/210601/171474
I had a very similar issue. It seems to come from the use of python3 instead of python2.7
I had /usr/bin/python linked to python3 (I changed the link after installing python3 for greater convenience, it looks like aliasing is a much better idea).
Anyway, after unlinking it and relinking it to python2.7 upgrade worked fine.
Never overwrite /usr/bin/python to python3, this would cause apt-get and several other to fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment