NVIDIA AGX Orin Failed to connect to github.com port 443: Connection timed out

参考:

  1. Git 报错:Failed to connect to github.com port 443: Timed out 解决办法
  2. https://blog.csdn.net/twi_twi/article/details/124692509

git 克隆 yolov5 时出现下面错误:

$ git clone https://github.com/ultralytics/yolov5
Cloning into 'yolov5'...
fatal: unable to access 'https://github.com/ultralytics/yolov5/': Failed to connect to github.com port 443: Connection timed out

同时github.com 也打不开
在这里插入图片描述参考 Git 报错:Failed to connect to github.com port 443: Timed out 解决办法 的解决步骤

sudo gedit /etc/hosts

在 hosts 的后面添加:

# GitHub Start
140.82.112.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
# GitHub End

保存后退出:

$ ping github.com
PING github.com (140.82.112.4) 56(84) bytes of data.
64 bytes from github.com (140.82.112.4): icmp_seq=1 ttl=46 time=258 ms
64 bytes from github.com (140.82.112.4): icmp_seq=2 ttl=46 time=243 ms
64 bytes from github.com (140.82.112.4): icmp_seq=3 ttl=46 time=267 ms
64 bytes from github.com (140.82.112.4): icmp_seq=4 ttl=46 time=250 ms
^C
--- github.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 243.457/254.622/267.248/8.937 ms

成功!!!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值