本地 apt-mirror 说找不到 Release,但它在那里,我错过了什么

本地 apt-mirror 说找不到 Release,但它在那里,我错过了什么

在指向我的本地镜像的主机上运行 apt-get update 返回以下警告和错误...

W: The repository 'https://apt.devita.co/puppet xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://apt.devita.co/ubuntu xenial-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://apt.devita.co/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://apt.devita.co/ubuntu xenial-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://apt.devita.co/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://apt.devita.co/puppet/dists/xenial/PC1/binary-amd64/Packages
E: Failed to fetch https://apt.devita.co/ubuntu/dists/xenial-backports/main/binary-amd64/Packages
E: Failed to fetch https://apt.devita.co/ubuntu/dists/xenial-security/main/binary-amd64/Packages
E: Failed to fetch https://apt.devita.co/ubuntu/dists/xenial-updates/main/binary-amd64/Packages
E: Failed to fetch https://apt.devita.co/ubuntu/dists/xenial/main/binary-amd64/Packages
E: Some index files failed to download. They have been ignored, or old ones used instead.

您可以在此处查看本地 repo 的屏幕截图,并且在我排除故障期间,该 repo 暂时公开可用。

在此处输入图片描述 在此处输入图片描述

我的 sources.list.d 看起来像这样

# This file is managed by Puppet. DO NOT EDIT.
# puppetlabs-pc1
deb https://apt.devita.co/puppet xenial PC1 main
# This file is managed by Puppet. DO NOT EDIT.
# xenial-backports
deb https://apt.devita.co/ubuntu/ xenial-backports main restricted universe multiverse
# This file is managed by Puppet. DO NOT EDIT.
# xenial
deb https://apt.devita.co/ubuntu/ xenial main restricted universe multiverse
# This file is managed by Puppet. DO NOT EDIT.
# xenial-security
deb https://apt.devita.co/ubuntu/ xenial-security main restricted universe multiverse
# This file is managed by Puppet. DO NOT EDIT.
# xenial-updates
deb https://apt.devita.co/ubuntu/ xenial-updates main restricted universe multiverse

并且/var/www目录是指向 apt-mirror 位置的符号链接,如下所示 在此处输入图片描述

答案1

我们在 IRC 中讨论过这个问题#ubuntu-server。到目前为止,看起来添加到/etc/ssl/certsbreak update-ca-certificates 的CA/etc/ssl/certs/ca-certificates.crt已经损坏,或者只是空的,所以apt-transport-https根本不起作用。

调试使用:apt-get -o Debug::Acquire::https=1 update

相关内容