首页 > 代码库 > ubuntu 16.04 apt-get update 出错解决办法
ubuntu 16.04 apt-get update 出错解决办法
0% [Connecting to security.ubuntu.com (2001:67c:1562::15)]
[Connecting to archive.canonical.com (2001:67c:1360:8c01::16)]
出现这种一直卡在那得情况解决办法
Turns out this is an issue where connecting over IPv6 on some servers causes them to get stuck at this point. The fix is really simple.
Open /etc/gai.conf
Uncomment the following line:
## For sites which prefer IPv4 connections change the last line to# precedence ::ffff:0:0/96 100
去掉#
precedence ::ffff:0:0/96 100
This will allow you to still use IPv6 but sets IPv4 as the precedence so that apt-get won’t get stuck.
ubuntu 16.04 apt-get update 出错解决办法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。