ubuntu20-github不通问题 Git报错fatal unable to connect to github.com: github.com[0: 20.205.243.166]

github不通

一直在github下载失败

Git报错fatal unable to connect to github.com: github.com[0: 20.205.243.166]

 >>> alsa-ucm-conf v1.2.6.3 Downloading(卡在这里,很烦啊)

然后搜了很多文档,然后以下操作:

1.GitHub.com - GitHub: Let's build from here · GitHub 上这个网址

2.由140.82.113.3可知DNS;

3.sudo vim /etc/hosts

4.sudo /etc/init.d/dns-clean start

5.sudo /etc/init.d/network-manager restart

然后编译就可以连接github了

测试:ping www.github.com

 

最近更新

  1. TCP协议是安全的吗?

    2024-01-31 08:58:04       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-31 08:58:04       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-31 08:58:04       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-31 08:58:04       18 阅读

热门阅读

  1. rust去掉release版本中的debug_info

    2024-01-31 08:58:04       31 阅读
  2. Modern C++ sizeof(std::tuple)的秘密及实现代码解读

    2024-01-31 08:58:04       46 阅读
  3. Mongodb投射中的$slice,正向反向跳过要搞清楚

    2024-01-31 08:58:04       27 阅读
  4. waymo open dataset v2.0.0 (Perception dataset) 大小

    2024-01-31 08:58:04       33 阅读
  5. Flask和Go框架相比

    2024-01-31 08:58:04       34 阅读