使用apt-get update安装更新时经常会卡在
[Connecting to archive.ubuntu.com ]
这一步,这里提供解决方法:
编辑/etc/gai.conf ,取消34行处的注释。
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
参考:http://askubuntu.com/questions/272796/connecting-to-archive-ubuntu-com-takes-too-long