Stefan Kecskes

Never stop learning, because life never stops teaching

Update Python on Ubuntu 22.04

Ok, so you have a fresh installation of Ubuntu 22.04 (Jammy Jellyfish), and you would like to update the default Python 3.10 that comes preinstalled in Ubuntu 22.04 to the latest version. It seems trivial, as you think that you can just uninstall the old version and install the new one. But it is not that simple. The problem is that Ubuntu 22.04 uses python 3.10 for some of its internal tools, and if you uninstall it, you will break your system. I know it, because I did that and I would like to save you some time and pain from restoring your system. So, what can you do? Well, you can install the new version of python alongside the old one, or even have multiple versions of python. This is a quick guide on how to do that.