【问题标题】:E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release fileE:存储库“http://ppa.launchpad.net/certbot/certbot/ubuntu 焦点发布”没有发布文件
【发布时间】:2020-05-31 14:26:51
【问题描述】:

自从我在 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.

有人知道如何解决这个错误吗?

【问题讨论】:

  • 也就是说,您为什么在 Debian 系统上使用 Ubuntu 存储库?尤其是当有already a certbot package in the main Debian repository,就是the official instructions tell you to use
  • “焦点”版本尚未发布。也许您应该在 sources.list 中恢复到以前的 Ubuntu 版本(在指向此 PPA 的文件中将焦点更改为 disco),同时仍然避免在 Debian 系统上使用 Ubuntu 存储库。
  • 这里有同样的问题。 Focal 报错module 'acme.challenges' has no attribute 'TLSSNI01'

标签: apt-get certbot debian-buster


【解决方案1】:

最新的源代码运行良好,可以使用one-liner to install certbot 安装。

curl -o- https://raw.githubusercontent.com/vinyll/certbot-install/master/install.sh | bash

这为我解决了,当 certbot PPA 将再次修复时,也会进行卸载。

【讨论】:

  • 虽然这仍然有效并且在愿意安装最新版本时有意义,但 PPA 现在发布了一个升级,在 Focal 上安装 certbot ?
【解决方案2】:

我通过删除 ppa 存储库消除了 Ubuntu 20.04 上的错误消息。我花了很长时间才找到确切的命令参数,所以这可能对其他人有所帮助:-)。 我使用了命令:

sudo apt-add-repository -r ppa:certbot/certbot

之后,以下命令不会产生任何错误:

sudo apt update
sudo apt-get update

【讨论】:

  • 有关删除 ppa 存储库的其他方法(包括 GUI 工具软件和更新),您可以查看 How to list and remove PPA repository on Ubuntu 20.04 Linux
  • 非常感谢您。 @jimbod119
  • 这个答案已经过时了。请参阅 certbot 说明。
  • Cannot add PPA: 'ppa:certbot/certbot'. Please check that the PPA name or format is correct.
  • 这个答案很好用。
【解决方案3】:

@vinyll 回答帮助我处理Ubuntu server 20.04。 它有一个小缺点:安装存储库的当前头,当前是1.9.0.dev0

我建议查看Certbot repository 以获得所需的发布标签 - 在我的情况下v1.8.0 指的是刚刚发布的版本1.8.0 - 并将脚本编辑为“结帐”它。

脚本会变成(安装Certbot v1.8.0):

#!/bin/bash

ROOT=~/.certbot-src

# Remove older versions if existing, for a simple re-install/update.
rm -rf $ROOT

# Clone certbot source.
git clone https://github.com/certbot/certbot $ROOT

# Check if python3-venv is installed, and install it otherwise.
CHECK_PACKAGES='python3-venv'
if ! dpkg -s $CHECK_PACKAGES >/dev/null 2>&1; then
  echo "The packages '$CHECK_PACKAGES' are not installed. "
  echo "They will now be installed automatically with 'sudo apt-get install $CHECK_PACKAGES'."
  sudo apt-get install -y $CHECK_PACKAGES
fi

# Checkout the desired release TAG.
cd $ROOT
git checkout v1.8.0 # Replace v1.8.0 with the TAG you chosen

# Setup virtual environment for certbot.
sudo apt-get install -y python3-dev python3-venv gcc libaugeas0 libssl-dev libffi-dev ca-certificates openssl
python3 tools/venv3.py

# Link installed certbot version, so it can used everywhere.
sudo ln -s $ROOT/venv3/bin/certbot /usr/local/bin/

注意:如果您想进行全新安装并且要删除旧的 Certbot 版本,请小心操作 - eg 可能有配置文件将使用apt purge certbotapt autoremove --purge certbot 删除,从而使新的Certbot 安装处于不一致的状态; this answer 可能会有所帮助。


【讨论】:

  • 包'python-virtualenv'没有安装候选
【解决方案4】:

我偶然发现了这些消息

~$ sudo add-apt-repository ppa:certbot/certbot
 This is the PPA for packages prepared by Debian Let's Encrypt Team and backported for Ubuntu.

Note: Packages are only provided for currently supported Ubuntu releases.
 More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://ca-central-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://ca-central-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]              
Get:3 http://ca-central-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]           
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]                             
Ign:5 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease                                 
Get:6 http://ca-central-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [588 kB]
Get:7 http://ca-central-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [666 kB]
Err:8 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release                                      
  404  Not Found [IP: 91.189.95.83 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 上关注 Ubuntu 18.04 certbot installation instructions

我应该遵循Ubuntu 20.04 certbot installation instructions,它避免了命令序列sudo add-apt-repository ppa:certbot/certbot 后跟sudo apt install python-certbot-nginx 并简单地执行

sudo apt install certbot python3-certbot-nginx

请注意,20.04 友好的命令在命令中使用python3,而不仅仅是python

公平地说,我wasn't the only onethis issue 打交道。 This other post 关于提供 -r 选项以删除存储库的解决方案帮助我确定了解决问题的方向。

请参阅@vinyll 对“A one-liner Certbot install 包含卸载程序可用的答案。也适用于 Ubuntu 20.04。”我没有遵循那条路线,因为我不想在不确定它们的依赖关系的情况下卸载软件包。由于我当时并不能 100% 确定,因此按照正确操作系统的安装说明进行操作比卸载它更容易,因为可能会在不知情的情况下消除所需的依赖关系。

【讨论】:

    【解决方案5】:

    我最近使用这个command安装了certbot
    sudo snap install --classic certbot

    【讨论】:

    • 谢谢!我在 Ubuntu 20.04 服务器上遇到了问题并运行了它,它最终起作用了。只是一个评论,这应该作为完整 certbot 安装过程的一部分执行 - 说明在 certbot.eff.org/lets-encrypt/ubuntufocal-nginx ,否则可能会遇到旧 certbot 包的一些问题
    【解决方案6】:

    使用以下内容:

    sudo apt-add-repository -r ppa:certbot/certbot

    sudo apt 更新

    【讨论】:

    • 对我不起作用。当我执行你的第二个命令(sudo apt update)时,我得到另一个 404,同样的错误
    猜你喜欢
    • 2019-04-24
    • 2020-01-09
    • 2018-04-18
    • 1970-01-01
    • 2019-05-16
    • 1970-01-01
    • 2017-04-29
    • 2021-02-10
    • 2023-02-19
    相关资源
    最近更新 更多