Instalar Python 3.10

Primero, actualice sus repositorios y paquetes del sistema.

$ sudo apt update && sudo apt upgrade -y

Una vez hecho eso podemos proceder a instalar las dependencias requeridas.

$ sudo apt install software-properties-common -y

Luego añadimos el PPA deadsnakes a la lista de repositorios de APT.

$ sudo add-apt-repository ppa:deadsnakes/ppa

Verá la siguiente salida:

..........
To install 3rd-party Python modules, you should use the common Python packaging tools.  
For an introduction into the Python packaging ecosystem and its tools, refer to the Python Packaging User Guide:
https://packaging.python.org/installing/

Sources
=======
The package sources are available at:
https://github.com/deadsnakes/

Nightly Builds
==============

For nightly builds, see ppa:deadsnakes/nightly https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly
More info: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Finalmente podemos instalar Python 3.10.

sudo apt install python3.10

¡Listo!