System Environment
Ubuntu18.04
Problem Description
sudo apt-get update
Command, it found an error:
Could not connect to dl.google.com:80 (6.6.6.6), connection timed out
Solution
By modifying here /etc/hosts
to 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:
represents the successful resolution of the problem, once again sudo apt-get update
successful.