Python 3.13 is not yet in the default repositories for older LTS versions (like Ubuntu 22.04 or 24.04). You should compile it from source or use the deadsnakes PPA (for Ubuntu users):
sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.13