Apt-get can't connect to 'security.ubuntu.com'
2016-06-24 09:14
281 查看
January 15, 2015
Ran into this issue today where on a newly made Linode Ubunu 14.04 LTS server I ran
The command started alright however eventually it would reach a point where it got stuck at
And wouldn’t continue no matter what. 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:
This will allow you to still use IPv6 but sets IPv4 as the precedence so that apt-get won’t get stuck.
Let me know if you have any issues!
Categories:
Quick
FixTags:
apt-get,linux,server,Xubuntu
Ran into this issue today where on a newly made Linode Ubunu 14.04 LTS server I ran
apt-get update
The command started alright however eventually it would reach a point where it got stuck at
Connecting to security.ubuntu.com (2001:67c:1562::16)
And wouldn’t continue no matter what. 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
This will allow you to still use IPv6 but sets IPv4 as the precedence so that apt-get won’t get stuck.
Let me know if you have any issues!
Categories:
Quick
FixTags:
apt-get,linux,server,Xubuntu
相关文章推荐
- android 自定义view基础知识
- Rhino
- 【codevs 1002】 搭桥
- javascript类型系统——正则表达式RegExp类型
- ebs version upgrade note
- wdCP v3正式版发布了
- mysql 主从复制配置
- 在学习编程的路上碰到的英文单词总结(一直都在更新。。。
- SQL--2常用sql语句&实例
- 基础知识漫谈(1): 想到哪儿写到哪儿
- 单表数据记录查询
- android中炫酷的界面设计以及下拉刷新效果
- linux 下 eclipse 开发环境的搭建
- [转载]Eclipse.ini的相关说明
- Hibernate 的原生 SQL 查询
- URL地址最大长度
- php scandir函数,print_r函数的问题
- iOS开发拓展篇—音频处理(音乐播放器5)
- 机器学习之(四)特征工程以及特征选择的工程方法
- Docker 深感 Mesos、Kubernetes 威胁,Engine 中内置编排