ph.archive.ubuntu.com 无法正常工作

ph.archive.ubuntu.com 无法正常工作

如果 ph.archive.ubuntu 无法正常工作,我该如何更新 ubuntu 版本?当我尝试在终端中输入此文件时sudo apt-get update,我收到了此错误

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:5 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial InRelease 
Hit:7 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease
Hit:4 http://screenshots.getdeb.net xenial-getdeb InRelease                    
Hit:8 http://ppa.launchpad.net/wiznote-team/ppa/ubuntu xenial InRelease        
Err:9 http://ph.archive.ubuntu.com/ubuntu xenial InRelease                     
  Could not connect to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80]
Err:10 http://ph.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80]
Err:11 http://ph.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80]
Reading package lists... Done
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80]
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80]
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

有同样的问题。解决办法是

编辑

/etc/apt/sources.list

替换所有实例

ph.archive.ubuntu.com

存档.ubuntu.com

发生这种情况的原因很奇怪。我猜是在设置您的位置时。Ubuntu 会尝试找到距离您所在位置最近的服务器。

相关内容