Ubuntu appear unable to connect dl.google.com:80 (6.6.6.6)

System Environment

Ubuntu18.04

Problem Description

sudo apt-get updateCommand, it found an error:

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

Solution

By modifying here /etc/hoststo solve this problem file, at the contents of the hosts file to add the following:

#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

After editing, the ping command to test results as shown below:
Here Insert Picture Description
represents the successful resolution of the problem, once again sudo apt-get updatesuccessful.

Guess you like

Origin blog.csdn.net/Lynn_mg/article/details/91390657