![本地 apt-mirror 说找不到 Release,但它在那里,我错过了什么](https://linux22.com/image/1141434/%E6%9C%AC%E5%9C%B0%20apt-mirror%20%E8%AF%B4%E6%89%BE%E4%B8%8D%E5%88%B0%20Release%EF%BC%8C%E4%BD%86%E5%AE%83%E5%9C%A8%E9%82%A3%E9%87%8C%EF%BC%8C%E6%88%91%E9%94%99%E8%BF%87%E4%BA%86%E4%BB%80%E4%B9%88.png)
在指向我的本地镜像的主机上运行 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
答案1
我们在 IRC 中讨论过这个问题#ubuntu-server
。到目前为止,看起来添加到/etc/ssl/certs
break update-ca-certificates 的CA/etc/ssl/certs/ca-certificates.crt
已经损坏,或者只是空的,所以apt-transport-https
根本不起作用。
调试使用:apt-get -o Debug::Acquire::https=1 update