Install Certbot in Ubuntu with package manager
Install Python
sudo apt install python3 python3-venv libaugeas0 python3-pip -y
Install Certbot
sudo apt install python3-certbot -y
If you want to use certbot automatic for cloudfare install the following
sudo apt install python3-certbot python3-certbot-dns-cloudflare -y
If you want to use it for either nginx og apache with automation of the services install the following
sudo apt install python3-certbot python3-certbot-apache -y
Or
sudo apt install python3-certbot python3-certbot-nginx -y