ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
sudo apt-get purge --auto-remove python3.5
sudo apt-get update
sudo apt-get install python3
Also, see https://docs.python-guide.org/starting/install3/linux/ or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/
- sudo apt-get install libsqlite3-dev
- ./configure --enable-loadable-sqlite-extensions && make && sudo make install
That lone command will not restore everything that was removed. It will only restore
ubuntu-desktop
and its dependencies! You'll need to make an install script out of everything that got removed.For example on my machine I'd have to run the following. It will be different for everyone, because it depends what you had installed.
When you are uninstalling python3 it will tell you every package that will also be removed. That's how you build your reinstall script - just copy everything into a single line, then add
sudo apt install
in front.Of course this is after you reinstall python.