[Ubuntu]|[Ubuntu] 0% [Connecting to archive.ubuntu.com (2001:67c:1360:8001::17)]
在Ubuntu中进行sudo apt update的时候,常会出现情况: 0% [Connecting to archive.ubuntu.com (2001:67c:1360:8001::17)]
解决方案:
修改并支持IPV6网络:
在shell中输入命令:
sudo gedit /etc/gai.conf
就会出现:
#precedence::1/12850
#precedence::/040
#precedence2002::/1630
#precedence ::/9620
#precedence ::ffff:0:0/9610
#
#For sites which prefer IPv4 connections change the last line to
#
#precedence ::ffff:0:0/96100#
# scopev4
然后查找字符串 "precedence :: ffff:0:0/96100",将它前面的注释去掉,保存收工
#precedence::1/12850
#precedence::/040
#precedence2002::/1630
#precedence ::/9620
#precedence ::ffff:0:0/9610
#
#For sites which prefer IPv4 connections change the last line to
#
#precedence ::ffff:0:0/96100
precedence ::ffff:0:0/96100#
# scopev4
【[Ubuntu]|[Ubuntu] 0% [Connecting to archive.ubuntu.com (2001:67c:1360:8001::17)]】
推荐阅读
- VM|VM ware 的 harbor 私有仓库搭建 (Ubuntu16.04)
- Xshell5|Xshell5 远程连接本地虚拟机Ubuntu16
- ubuntu开机默认进入命令行模式/用户图形界面
- seedubuntu|seedubuntu 下搭建discuz论坛
- Ubuntu|Ubuntu 16.04(LTS)---- 系统安装(1)
- ubuntu16.04-caffe-tensorflow安装教程
- Ubuntu|Ubuntu 下添加开机启动脚本
- 在ubuntu18.04中使用清华源安装docker
- Ubuntu查看硬件配置
- ubuntu装java环境