20.04 sudo apt update 显示错误:http://ddebs.ubuntu.com focal-security Release 404 Not Found

20.04 sudo apt update 显示错误:http://ddebs.ubuntu.com focal-security Release 404 Not Found

我正在尝试以下链接中的步骤:

https://wiki.ubuntu.com/Kernel/CrashdumpRecipe?action=show&redirect=KernelTeam%2FCrashdumpRecipe

仅供参考:我使用的命令:sudo apt-get install linux-crashdump

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01 sudo apt-get update Sudo apt update 显示以下结果:

Err:15 http://ddebs.ubuntu.com focal-security Release
  404  Not Found [IP: 185.125.188.12 80]

Reading package lists... Done
E: The repository 'http://ddebs.ubuntu.com focal-security 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.
W: GPG error: http://ddebs.ubuntu.com focal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C8CAB6595FDFF622
E: The repository 'http://ddebs.ubuntu.com focal Release' is not signed.
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.
W: GPG error: http://ddebs.ubuntu.com focal-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C8CAB6595FDFF622
E: The repository 'http://ddebs.ubuntu.com focal-updates Release' is not signed.
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.
W: GPG error: http://ddebs.ubuntu.com focal-proposed Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C8CAB6595FDFF622
E: The repository 'ddebs ubuntu com focal-proposed Release' is not signed.
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.

答案1

执行以下命令:

sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
deb http://ddebs.ubuntu.com/ $(lsb_release -cs)          main restricted universe multiverse
deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-updates  main restricted universe multiverse
deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-proposed main restricted universe multiverse
EOF

之后删除该/etc/apt/source.list.d/ddebs.list文件:

然后尝试运行:

sudo apt update

答案2

您需要设置配置选项才能更新该存储库。显示此错误消息是因为存储库的发布文件未签名或没有发布文件。

要将输出设置为显示警告而不是错误,您需要更改您sources.list最近可能访问过的文件(如果您看到此消息),并将以下标志添加到显示为受限的条目中:

allow-insecure=yes

这也可以在全局层面上完成,但我不建议这样做。如果你将其保留为“每个存储库”,

1.)您将能够在任何给定点通过引用您的来查看哪些存储库是未签名的sources.list,并且......

2.)如果将来添加的另一个存储库未经签名,您将立即知道。

开启后还是会有警告,下载的应用也需要确认。

这一切都是为了确保您收到的文件是您所期望的,因为它们来自相对值得信赖的来源(或者至少是不会丢失信息的来源)。

有关该主题的更多信息,请参阅apt-secure

man apt-secure

相关内容