更新系统时失败

更新系统时失败

我在尝试更新系统时遇到了一些问题

W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/trusty-getdeb/apps/binary-amd64/Packages  521  Origin Down [IP: 104.28.24.125 80]

W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/trusty-getdeb/apps/binary-i386/Packages  521  Origin Down [IP: 104.28.24.125 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

我尝试遵循一些旧的回答但它不起作用,因为我没有从 PPA 存储库下载,而是从 GetDeb 下载。我尝试按照这个指导在 GetDeb 中,但是当我输入时sudo apt-get update,终端仍然告知相同的错误。

更新粘贴箱源列表

使用新信息更新时sudo apt-get update,会显示一个新错误:

W: Duplicate sources.list entry http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps amd64 Packages (/var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_trusty-getdeb_apps_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps amd64 Packages (/var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_trusty-getdeb_apps_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps i386 Packages (/var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_trusty-getdeb_apps_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps i386 Packages (/var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_trusty-getdeb_apps_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

答案1

第一个错误:

   W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/trusty-getdeb/apps/binary-amd64/Packages  521  Origin Down [IP: 104.28.24.125 80]

意味着服务器宕机了。我测试了存储库 URL,它确实宕机了。

您收到的第二个错误意味着同一个存储库有两个条目。

使用以下命令检查定义的位置:

  grep "archive.getdeb.net/ubuntu/ trusty-getdeb/apps" /etc/apt/sources.list 
  grep "archive.getdeb.net/ubuntu/ trusty-getdeb/apps" /etc/apt/sources.list.d/* 

如果发现多个定义,请删除重复的项目并重做:

  sudo apt-get update 

今天我检查了存储库 URL,现在它似乎已启动。

相关内容