无法从官方存储库更新

无法从官方存储库更新

做的时候总是出错

sudo apt-get update

或者当我尝试安装某个应用程序时。看起来存储库出了问题,但我sources.list多次从头恢复并将其指向不同的服务器,但没有成功。

现在我的 sources.list 看起来像(我切换到主服务器):

  1 ###### Ubuntu Main Repos                                                        
  2 deb http://archive.ubuntu.com/ubuntu zesty main universe                        
  3 deb-src http://archive.ubuntu.com/ubuntu zesty main universe                    
  4                                                                                 
  5 ###### Ubuntu Update Repos                                                      
  6 deb http://archive.ubuntu.com/ubuntu zesty-security main universe               
  7                                                                                 
  8 ###### Ubuntu Partner Repo                                                      
  9 deb http://archive.canonical.com/ubuntu zesty partner                           
 10 deb-src http://archive.canonical.com/ubuntu zesty partner

当我进行更新时,我得到:

~ $ sudo apt-get update

Ign:1 http://archive.ubuntu.com/ubuntu zesty InRelease
Ign:2 http://archive.ubuntu.com/ubuntu zesty-security InRelease
Err:3 http://archive.ubuntu.com/ubuntu zesty Release   
  404  Not Found [IP: 91.189.88.149 80]
Hit:4 http://archive.canonical.com/ubuntu zesty InRelease
Ign:5 http://archive.ubuntu.com/ubuntu zesty-security Release
Ign:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:8 http://archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:10 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:11 http://archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:12 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons
Ign:14 http://archive.ubuntu.com/ubuntu zesty-security/universe all Packages
Ign:15 http://archive.ubuntu.com/ubuntu zesty-security/universe i386 Packages
Ign:16 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 Packages
Ign:17 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en_US
Ign:18 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en
Ign:19 http://archive.ubuntu.com/ubuntu zesty-security/universe all DEP-11 Metadata
Ign:20 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata
Ign:21 http://archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons
Ign:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:8 http://archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:10 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:11 http://archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:12 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons
Ign:14 http://archive.ubuntu.com/ubuntu zesty-security/universe all Packages
Ign:15 http://archive.ubuntu.com/ubuntu zesty-security/universe i386 Packages
Ign:16 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 Packages
Ign:17 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en_US
Ign:18 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en
Ign:19 http://archive.ubuntu.com/ubuntu zesty-security/universe all DEP-11 Metadata
Ign:20 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata
Ign:21 http://archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons
Ign:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:8 http://archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:10 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:11 http://archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:12 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons
Ign:14 http://archive.ubuntu.com/ubuntu zesty-security/universe all Packages
Ign:15 http://archive.ubuntu.com/ubuntu zesty-security/universe i386 Packages
Ign:16 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 Packages
Ign:17 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en_US
Ign:18 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en
Ign:19 http://archive.ubuntu.com/ubuntu zesty-security/universe all DEP-11 Metadata
Ign:20 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata
Ign:21 http://archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons
Ign:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:8 http://archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:10 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:11 http://archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:12 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons
Ign:14 http://archive.ubuntu.com/ubuntu zesty-security/universe all Packages
Ign:15 http://archive.ubuntu.com/ubuntu zesty-security/universe i386 Packages
Ign:16 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 Packages
Ign:17 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en_US
Ign:18 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en
Ign:19 http://archive.ubuntu.com/ubuntu zesty-security/universe all DEP-11 Metadata
Ign:20 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata
Ign:21 http://archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons
Ign:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:8 http://archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:10 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:11 http://archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:12 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons
Ign:14 http://archive.ubuntu.com/ubuntu zesty-security/universe all Packages
Ign:15 http://archive.ubuntu.com/ubuntu zesty-security/universe i386 Packages
Ign:16 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 Packages
Ign:17 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en_US
Ign:18 http://archive.ubuntu.com/ubuntu zesty-security/universe Translation-en
Ign:19 http://archive.ubuntu.com/ubuntu zesty-security/universe all DEP-11 Metadata
Ign:20 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata
Ign:21 http://archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons
Err:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
  404  Not Found [IP: 91.189.88.149 80]
Ign:7 http://archive.ubuntu.com/ubuntu zesty-security/main i386 Packages
Ign:8 http://archive.ubuntu.com/ubuntu zesty-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en
Ign:10 http://archive.ubuntu.com/ubuntu zesty-security/main Translation-en_US
Ign:11 http://archive.ubuntu.com/ubuntu zesty-security/main all DEP-11 Metadata
Ign:12 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata
Ign:13 http://archive.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons
Ign:14 http://archive.ubuntu.com/ubuntu zesty-security/universe all Packages
Ign:15 http://archive.ubuntu.com/ubuntu zesty-security/universe i386 Packages
Ign:16 http://archive.ubuntu.com/ubuntu zesty-security/universe amd64 Packages
Reading package lists... Done
E: The repository 'http://archive.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.
W: The repository 'http://archive.ubuntu.com/ubuntu zesty-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

看起来它说找不到链接。

Err:6 http://archive.ubuntu.com/ubuntu zesty-security/main amd64 Packages
  404  Not Found [IP: 91.189.88.149 80]

但对我来说,该链接是有效的,可以验证。

我做错了什么吗?我刚刚将官方存储库复制到源列表?为什么无法使用它们更新和安装应用程序?

~ $ lsb_release  -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:    17.04
Codename:   zesty

答案1

相关内容