我读了大约十几个sudo apt-get update
问题,并尝试了那里建议的解决方案。但都没有奏效。我刚刚在笔记本电脑上安装了 Lubuntu 15.04,并与 Windows 8 一起双启动。运行时sudo apt-get update
出现以下错误:
Err http://ph.archive.ubuntu.com vivid InRelease
Err http://ph.archive.ubuntu.com vivid-updates InRelease
Err http://ph.archive.ubuntu.com vivid-backports InRelease
Err http://ph.archive.ubuntu.com vivid Release.gpg
Cannot initiate the connection to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80]
Err http://ph.archive.ubuntu.com vivid-updates Release.gpg
Cannot initiate the connection to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80]
Err http://ph.archive.ubuntu.com vivid-backports Release.gpg
Cannot initiate the connection to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80]
Fetched 19.7 kB in 2min 0s (163 B/s)
Reading package lists... Done
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/vivid/InRelease
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/vivid-updates/InRelease
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/vivid-backports/InRelease
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/vivid/Release.gpg Cannot initiate the connection 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/vivid-updates/Release.gpg Cannot initiate the connection 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/vivid-backports/Release.gpg Cannot initiate the connection to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80]
这是我的来源列表:
# deb cdrom:[Lubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ph.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ph.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ph.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid universe
deb http://ph.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ph.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://ph.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ph.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://ph.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu vivid partner
deb-src http://archive.canonical.com/ubuntu vivid partner
答案1
我建议你更换镜像服务,因为ph.archive.ubuntu.com
似乎无法解决,要么是因为子域名已被删除,要么是存在某种奇怪的代理问题。
解决方案:替换所有实例ph.archive.ubuntu.com
和archive.ubuntu.com
即删除ph.
从 URL 中删除,其他内容保持原样。