错误101:尝试更新时无法访问网络
我的ubuntu浏览通常无法访问任何网站,更多apt-get update
,甚至upgrade
此错误,如下所示,它可能是什么?
sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB] Hit:2 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Err:3 http://br.archive.ubuntu.com/ubuntu xenial InRelease Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80] Err:4 http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80] Err:5 http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80] Downloading 94,5 kB in 2min 0s (786 B/s) Reading package lists ... Done W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80] W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80] W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80] W: Some index files failed to download. They have been ignored, or old ones used instead.
Ubuntu的:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
您是否尝试将存储库更改为“主服务器”?
您可以通过打开“软件和更新”并选择其他镜像来更改它。
有时本地存储库镜像会关闭,所以检查其他存储库总是一个好主意;)
我也注意到它正试图通过IPv6连接,你的路由器或ISP可能不支持。 你试过这个吗?
从日志中可以看出您的计算机正在使用IPv6连接到Internet。 可能是您的互联网服务提供商不支持IPv6。 您可以尝试禁用IPv6。
要在系统范围内执行此操作,请编辑文件/etc/default/grub
(例如使用sudo nano /etc/default/grub
),并将ipv6.disable=1
添加到ipv6.disable=1
的值。
在该行读取的默认Ubuntu安装中
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
所以你把它改成了
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable"
之后,首先运行sudo update-grub
,然后重启。