问题描述
我在一些客户端 PC 上使用 Ubuntu 16.10。 /etc/apt/sources.list 设置为使用 zesty (17.04) 和旧版本而不是国家版本。 其中一些我无法安装新的 apt 包:
user@pcnuc-001:~$ sudo apt-get update
Ign:1 http://old-releases.ubuntu.com/ubuntu zesty InRelease
Ign:2 http://old-releases.ubuntu.com/ubuntu zesty-updates InRelease
Ign:3 http://old-releases.ubuntu.com/ubuntu zesty-backports InRelease
Ign:4 http://old-releases.ubuntu.com/ubuntu zesty-security InRelease
Err:5 http://old-releases.ubuntu.com/ubuntu zesty Release
503 Service Unavailable [IP: 91.189.88.248 80]
Err:6 http://old-releases.ubuntu.com/ubuntu zesty-updates Release
503 Service Unavailable [IP: 91.189.88.248 80]
Err:7 http://old-releases.ubuntu.com/ubuntu zesty-backports Release
503 Service Unavailable [IP: 91.189.88.248 80]
Err:8 http://old-releases.ubuntu.com/ubuntu zesty-security Release
503 Service Unavailable [IP: 91.189.88.248 80]
Reading package lists... Done
E: The repository 'http://old-releases.ubuntu.com/ubuntu zesty Release' does no longer 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu zesty-updates Release' does no longer 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu zesty-backports Release' does no longer 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu zesty-security Release' does no longer 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.
oscdig@oscart-nuc-001:~$
这可能是防火墙或代理服务器造成的,所以我试图找出实际返回的 http 内容,所以在同一台机器上,我运行 wget 获取数据:(尝试了 Release 和 InRelease)
user@pcnuc-001:~$ wget http://old-releases.ubuntu.com/ubuntu/dists/zesty/InRelease
--2020-12-21 10:51:04-- http://old-releases.ubuntu.com/ubuntu/dists/zesty/InRelease
Resolving old-releases.ubuntu.com (old-releases.ubuntu.com)... 91.189.88.248,91.189.91.124,91.189.91.123,...
Connecting to old-releases.ubuntu.com (old-releases.ubuntu.com)|91.189.88.248|:80... connected.
HTTP request sent,awaiting response... 200 OK
Length: 243010 (237K)
Saving to: ‘InRelease.1’
InRelease.1 100%[==================================>] 237,31K --.-KB/s in 0,1s
2020-12-21 10:51:05 (2,24 MB/s) - ‘InRelease.1’ saved [243010/243010]
而且内容很好:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Origin: Ubuntu
Label: Ubuntu
Suite: zesty
Version: 17.04
Codename: zesty
Date: Thu,13 Apr 2017 13:44:04 UTC
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Components: main restricted universe multiverse
Description: Ubuntu Zesty 17.04
MD5Sum:
1077892e0985a3b117842727e6d2d42b 574517201 Contents-amd64
af7e06735ec863dd537fc0bd29e5f3f3 36397405 Contents-arm64.gz
5ee9a02f8d29ac7dcbf6e97dd169ffba 552857238 Contents-ppc64el
55d71f5622175d21234f9e5309243812 571073099 Contents-i386
8341491ae887047e1d3646e43367631c 558971043 Contents-armhf
...
我不知道这些电脑是如何连接到互联网的。它们位于客户的网络中,但无论如何“应该”不会被阻止,尽管我对此不太确定。
当我使用 VPN 并将 /etc/apt/apt.conf 中的代理服务器添加到我机器上的鱿鱼服务器时,一切正常。因此,某些东西必须阻止 apt-get 工作,但由于 wget 正在工作,我无法找出那是什么。 仅供参考:wget 配置不使用代理服务器。 curl 也能正常工作。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)