首页 > 代码库 > ubuntu 更显列表 [Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)] 超时的解决方法
ubuntu 更显列表 [Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)] 超时的解决方法
问题描述:
在使用apt-get update 时更行列表,显示[Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)]超时
分析:
我已更改为ubuntu的阿里云,不应该出现访问不了的情况,通过搜索,得知原因如下
ubuntu默认走ipv6,但是我更改的阿里源应该不支持ipv6.
解决方法:
打开/etc/gai.conf(地址信息的配置文件),找到#precedence ::ffff:0:0/96 100, 将"#" 去掉保存,就行了。
ubuntu 更显列表 [Connecting to archive.ubuntu.com (2001:67c:1360:8001::21)] 超时的解决方法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。