首页 > 系统服务 > 详细

ubuntu 16.04 apt-get update 出错解决办法

时间:2016-09-09 15:14:36      阅读:5981      评论:0      收藏:0      [点我收藏+]

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 出错解决办法

原文:http://www.cnblogs.com/powerthink/p/5856522.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!