I'm getting an error when trying to update my Certbot package on Ubuntu 20.04 (Focal Fossa)
While trying to run updates on Ubuntu 20.04, I see this error message in the output:
Hit:1 http://mirrors.linode.com/ubuntu focal InRelease Hit:2 http://mirrors.linode.com/ubuntu focal-updates InRelease Hit:3 http://mirrors.linode.com/ubuntu focal-backports InRelease Ign:4 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease Err:5 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release 404 Not Found [IP: 2001:67c:1560:8008::19 80] Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
How do I update this package?
The reason why you see that error is because the PPA Certbot package is not supported on Ubuntu 20.04.
Certbot has provided step-by-step instructions on how to handle this on their website. You can specifically for the version of Ubuntu that you're running:
You can filter for whichever web server you're running on your Linode.
The new default Certbot package for Ubuntu is here:
Package: certbot (0.40.0-1) [universe]
We also have a guide that may help you out here: Securing Web Traffic Using Certbot with NGINX on Ubuntu 20.04 and 18.04
Specifically, the sections on Installing snapd and Installing Certbot will walk you through the process of installing the snapd package manager, uninstalling your existing Certbot package, and installing the Certbot snap, the officially maintained package.
I had the same problem. Go here and follow the instructions. Make sure you uninstall the Certbot you have now, as the instructions tell you to do.