修改/etc/hosts文件,在底部添加
192.30.253.112 github.com
问题解决 参考:https://www.cnblogs.com/han-1034683568/p/6457894.html