一. ubuntu更新出错
1.更新后连接出错
100% [Connecting to security.ubuntu.com (2001:67c:1562::15)] [Connecting to archive.canonical.com (2001:67c:1360:8c01::16)]
解决方法:
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
This will allow you to still use IPv6 but sets IPv4 as the precedence so that apt-get won’t get stuck.
这个问题可能会导致多个很多其它安装问题出现,比如在安装g++的时候,有可能就会导致 0% [Connecting to security.ubuntu.com (2001:67c:1562::19)]
而一直下载不了。