Ubuntu18.04 cannot enter Github solution
Preface
The newly installed Ubuntu system needs to make the following system configuration changes if it wants to enter Github.
1. Open the Host file
First open a new terminal and enter the following command to open the Host file:
sudo gedit /etc/hosts
2. Change the Host file
Scroll to the bottom of the file and add the following code at the end of Host:
140.82.112.3 github.com
199.232.69.194 github.global.ssl.fastly.net
3. Reset the system network
Open a new terminal and enter the following command:
/etc/init.d/networking restart
4. Test
Open a new terminal and enter the following command:
ping github.com