A complete guide on how to upgrade Python to the latest version (Python 3.12) on Ubuntu Linux and solve associated issues. Also works on WSL2.
A guide to installing multiple fresh instances of Ubuntu in WSL2