我阅读了十几个sudo apt-get update问题,并尝试了其中提出的解决方案。他们都不起作用。我刚刚在我的笔记本上安装了Lubuntu15.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]这是我的sources.list:
# 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发布于 2015-10-11 03:02:11
我建议您更改镜像服务,因为ph.archive.ubuntu.com似乎没有解决,这要么是因为子域已被删除,要么是存在某种奇怪的代理问题。
解决方案:将ph.archive.ubuntu.com的所有实例替换为archive.ubuntu.com,即从urls中删除ph.,保留其他所有内容。
https://askubuntu.com/questions/684007
复制相似问题