自从我在Debian 10上安装了certbot,它总是显示这个错误。
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.
谁知道如何解决这个错误?
我在Ubuntu 20.04上通过删除ppa仓库来消除错误信息。我花了很长时间才找到确切的命令参数,所以这可能会帮助其他人:-).我使用了这个命令。
apt-add-repository -r ppa:certbot/certbot
之后,下面的命令没有产生任何错误。
apt update
apt-get update
最新的源码工作得很好,并且可以用以下命令安装 安装certbot的单行本.
curl -o- https://raw.githubusercontent.com/vinyll/certbot-install/master/install.sh | bash
这就给我解决了,还有一个卸载也等certbot PPA再修复。