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
DON'T DO IT, IT WILL DESTROY THE DESKTOP!!!
sudo apt-get purge ....
destroys dependencies and ubuntu desktop needs it (i think so...)So try running:
sudo apt install --reinstall ubuntu-desktop
to solve this problem.
It has worked for me (for now haha) but it was also helpful running
sudo apt-get install --reinstall pythonVERSION
to reinstall everything that is needed.(for me was python3.10, just look for it after reinstalling the desktop running
/usr/bin/python3
and check which version you need)