Install latest version of certbot.
This makes Certbot is useful with the latest Ubuntu—still very helpful with Ubuntu25.10. Probably for latest Debian as well and is also valid for older Ubuntu 21.04 / 21.10.
Run the following command with a sudoer:
curl -o- https://raw.githubusercontent.com/vinyll/certbot-install/master/install.sh | bashIf you meet any error, see the Troubleshooting section below.
curl -o- https://raw.githubusercontent.com/vinyll/certbot-install/master/uninstall.sh | bashYou may prefer the regular installation of certbot from official PPA.
However, if you experiment the following error with some Ubuntu releases, this install will prevent and solve.
AttributeError: module 'acme.challenges' has no attribute 'TLSSNI01'
This is also interesting if you need to work with the latest release of certbot at all.
Error: error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1:
Fix:
sudo apt install -y libaugeas-dev