Ubuntu中出现无法连接dl.google.com:80 (6.6.6.6)

系统环境

Ubuntu18.04

问题描述

sudo apt-get update命令时,发现出现一下错误:

 Could not connect to dl.google.com:80 (6.6.6.6), connection timed out

解决方法

这里通过修改/etc/hosts文件来解决这个问题,在hosts文件下面添加一下内容:

#Download 下载
203.208.41.32 dl.google.com
203.208.41.32 dl-ssl.google.com

 #Groups
203.208.41.32 groups.google.com

 #Google URL Shortener
203.208.41.32 goo.gl

 #Google App Engine
203.208.41.32 appengine.google.com

修改完成后,使ping命令来测试,结果如下图:
在这里插入图片描述
表示问题成功解决,再次sudo apt-get update时成功。

猜你喜欢

转载自blog.csdn.net/Lynn_mg/article/details/91390657