Since i installed certbot on Debian 10, it always shows this error:
root@HypeTime:/home/sinusbot# apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates 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::15 80]
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.
Does someone know how to fix this error?
8
Answers
The latest source works just fine and can be installed with a one-liner to install certbot.
That solved for me, and there’s an uninstall also when certbot PPA will be fixed again.
I got rid of the error message on Ubuntu 20.04 by removing the ppa repository. It took me a long time to find out the exact command argument, so this might help others :-).
I used the command:
After that, the following commands do not generate any errors:
@vinyll answer helped me that am dealing with
Ubuntu server 20.04
.There’s just a little drawback with it: installs the current head of the repository, which currently is
1.9.0.dev0
.I suggest to look at Certbot repository for the desired release tag – in my case
v1.8.0
that refers to the just released version1.8.0
– and to edit the script to "checkout" it.The script would become (to install
Certbot v1.8.0
):NOTE: if you want to do a clean install and you are going to remove an old Certbot version, do it carefully – e.g. there could be configuration files that would be deleted using
apt purge certbot
orapt autoremove --purge certbot
, bringing the new Certbot installation in an inconsistent state; this answer may help.I stumbled into these messages
by following Ubuntu 18.04 certbot installation instructions on Ubuntu 20.04.
I should’ve followed the Ubuntu 20.04 certbot installation instructions, which avoid the command sequence
sudo add-apt-repository ppa:certbot/certbot
followed bysudo apt install python-certbot-nginx
and simply executeNote that the 20.04-friendly command uses
python3
in the command, and not justpython
.To be fair, I wasn’t the only one dealing with this issue. This other post about solutions that offer the
-r
option to remove repositories helped me figure out in which direction a solution to my issue could be.See @vinyll’s answer for "A one-liner Certbot install is available with the uninstaller included. Works also on Ubuntu 20.04." I did not follow that route because I’m not to keen to uninstall packages without being absolutely certain what they’re dependencies for. Since I wasn’t 100% certain at the time, it was easier to just follow the installation instructions for the proper OS than uninstall it risking eliminating needed dependencies without being aware.
I have recently installed
certbot
using this command:sudo snap install --classic certbot
Use the following:
and
Some PPA’s do not get updated to newer linux version by their creators/maintainers. Therefore, you need to erase them.
To do it without removing the entire PPA you can use this guide:
safely-remove-ppa-repositories-ubuntu
If the PPA version is not compatible with your linux version, you need to update it.
This answer is general for this problem with any PPA errors of that kind so I hope it is the right place to answer it.
I think in recent times the solution is different.
I did two things,
first of all, just install the "certbot" from snap with –classic
And remove other packages from "Software & Updates" >> then go to the Tab "Other Software" >> then select all other packages which you want to remove.
Then in the terminal, you can check it by "Sudo apt update". If there is no issue, you won’t get the Error,