scenario

  • You cannot download code with Git Clone.
  • The server cannot be found using ping github.com.

To solve

  • Modify the hosts file.

How do I modify the hosts file in Ubuntu?

sudo gedit /etc/hosts
Copy the code