Ubuntu 18.04 Can't upgrade because of libpython3.6 version conflicts

Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16. Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.

First, I had to remove the ppa the hard way by

sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*

and then remove the conflicted library with

sudo apt remove libpython3.6-*

to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.

Doing a

sudo apt update && sudo apt upgrade

installed python3.6 with some major caveats.

I had to [reinstall ubuntu-desktop](next time I logged in). So probably better for you to run

sudo apt install ubuntu-desktop

before shutting down your computer!!!!!!!!!!!!!