如果发现ping github.com有问题
使用sudo gedit /ect/hosts 打开host文件
添加
140.82.114.4 github.com
发现使用git 克隆失败,出现
alia@ubuntu:~/文档/c++test$ git clone https://github.com/LearningInfiniTensor/learning-cxx.git
正克隆到 ‘learning-cxx’…
fatal: 无法访问 ‘https://github.com/LearningInfiniTensor/learning-cxx.git/’:Failed to connect to github.com port 443 after 21036 ms: Couldn’t connect to server
尝试使用 HTTPS 协议并禁用 SSL 验证:
git config --global http.sslVerify false
git clone https://github.com/LearningInfiniTensor/learning-cxx.git