我是靠谱客的博主 聪明裙子,这篇文章主要介绍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.

转载于:https://www.cnblogs.com/powerthink/p/5856522.html

最后

以上就是聪明裙子最近收集整理的关于ubuntu 16.04 apt-get update 出错解决办法的全部内容,更多相关ubuntu内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(107)

评论列表共有 0 条评论

立即
投稿
返回
顶部