Ubuntu 24.04 comes with a newer Python version. But Rasa 3.6 only works with Python 3.8 to 3.10 Rasa Docs.
So we’ll install Python 3.10 from a trusted source called Deadsnakes :
# Update the system
sudo apt update && sudo apt upgrade -y
# Install software that allows adding repositories