CAUTION: All the below commands will COMPLETELY BREAK your OS.
I removed all version by doing :
sudo apt purge python-pip python-dev
sudo rm -rf /usr/bin/python*
sudo rm -rf /etc/python*
sudo rm -rf /usr/local/lib/python*
sudo rm -rf /usr/share/man/man1/python*
sudo rm -rf /usr/share/python*
sudo rm -rf /usr/local/bin/pip*
Now when i try to install again :
sudo apt-get install python3
It detects it is already installed ?
Any idea how to complety remove old versions ?
thanks
rm
to remove packages that were installed by apt. Your command isn't detecting anything - apt is simply querying it's internal database...which no longer matches reality. – user535733 Oct 02 '19 at 18:09