Skip to content

Instantly share code, notes, and snippets.

View jcopps's full-sized avatar
🥁
Figuring out

Jeffry copps jcopps

🥁
Figuring out
View GitHub Profile
@jcopps
jcopps / docker purge
Created November 29, 2019 06:19
Purge in docker to free up space
docker system prune & docker system prune --volumes
@jcopps
jcopps / gist:3a35a624ecf4da534f510ba2e24d4829
Created September 4, 2019 16:19
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.
@jcopps
jcopps / README.md
Last active August 28, 2019 07:11
Switching between python2 and python3

Creating an alias will not be the best way to do it.

Using update-alternatives

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2

sudo update-alternatives --config python Enter 2 for Python 2.7.