Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... failed

简介: Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... failed

问题描述:这里需要下载kitti的3D检测数据,从一个raw.githubusercontent.com的网站上进行wget下载txt文件,但是返回无法访问的错误。Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443… failed: Connection refused.


解决方法:

1)通过ip查询网站(https://site.ip138.com/raw.Githubusercontent.com/),查找raw.githubusercontent.com的IP地址

image.png


2)在linux的 /etc/hosts 路径上,添加上诉查询到的IP,sudo vi /etc/hosts

image.png


此时,发现raw.githubusercontent.com可以正常ping通,重新执行命令:


wget -c  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/test.txt --no-check-certificate --content-disposition -O ./data/kitti/ImageSets/test.txt


可以正常执行,问题解决。


执行过程:



```python
(base) lab@user-AS-5014A-TT:~/LLC/PointCloud$ wget -c  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/test.txt
--2022-10-12 10:21:16--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/test.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52625 (51K) [text/plain]
Saving to: ‘test.txt’
test.txt                      100%[===============================================>]  51.39K  --.-KB/s    in 0.08s
2022-10-12 10:21:16 (672 KB/s) - ‘test.txt’ saved [52625/52625]
(base) lab@user-AS-5014A-TT:~/LLC/PointCloud/mmdetection3d$ wget -c  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/trainval.txt --no-check-certificate --content-disposition -O ./data/kitti/ImageSets/trainval.txt
--2022-10-12 10:27:05--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/trainval.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52366 (51K) [text/plain]
--2022-10-12 10:27:05--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/trainval.txt
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 52366 (51K) [text/plain]
Saving to: ‘./data/kitti/ImageSets/trainval.txt’
./data/kitti/ImageSets/trainv 100%[===============================================>]  51.14K  --.-KB/s    in 0.08s
2022-10-12 10:27:06 (643 KB/s) - ‘./data/kitti/ImageSets/trainval.txt’ saved [52366/52366]
(base) lab@user-AS-5014A-TT:~/LLC/PointCloud/mmdetection3d$ wget -c  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/val.txt --no-check-certificate --content-disposition -O ./data/kitti/ImageSets/val.txt
--2022-10-12 10:26:58--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/val.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26382 (26K) [text/plain]
--2022-10-12 10:26:58--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/val.txt
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 26382 (26K) [text/plain]
Saving to: ‘./data/kitti/ImageSets/val.txt’
./data/kitti/ImageSets/val.tx 100%[===============================================>]  25.76K  --.-KB/s    in 0.02s
2022-10-12 10:26:58 (1.04 MB/s) - ‘./data/kitti/ImageSets/val.txt’ saved [26382/26382]
(base) lab@user-AS-5014A-TT:~/LLC/PointCloud/mmdetection3d$ wget -c  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/trainval.txt --no-check-certificate --content-disposition -O ./data/kitti/ImageSets/trainval.txt
--2022-10-12 10:27:05--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/trainval.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52366 (51K) [text/plain]
--2022-10-12 10:27:05--  https://raw.githubusercontent.com/traveller59/second.pytorch/master/second/data/ImageSets/trainval.txt
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 52366 (51K) [text/plain]
Saving to: ‘./data/kitti/ImageSets/trainval.txt’
./data/kitti/ImageSets/trainv 100%[===============================================>]  51.14K  --.-KB/s    in 0.08s
2022-10-12 10:27:06 (643 KB/s) - ‘./data/kitti/ImageSets/trainval.txt’ saved [52366/52366]


感觉这个方法对于xxx.com 无法访问同样可以使用。


参考资料:

Ubuntu下连接raw.githubusercontent.com失败


目录
相关文章
|
25天前
|
人工智能 自然语言处理 数据可视化
2025年国内主流 BI 工具全景解析:功能、行业应用与选型指南
国内主流BI工具适配本土需求,涵盖自助分析与企业管控两大类。瓴羊Quick BI、Power BI国内版等支持多源数据集成、AI智能分析及行业定制,助力企业打通数据孤岛,实现高效决策。选型需结合数据基础、业务场景与行业特性,避免落地误区,让BI真正赋能业务增长。2025年国内主流 BI 工具全景解析:功能、行业应用与选型指南。
|
缓存 Linux 开发工具
CentOS 7- 配置阿里镜像源
阿里镜像官方地址http://mirrors.aliyun.com/ 1、点击官方提供的相应系统的帮助 :2、查看不同版本的系统操作: 下载源1、安装wget yum install -y wget2、下载CentOS 7的repo文件wget -O /etc/yum.
262751 0
|
8月前
|
Python
同步和异步的区别
用Python讲解同异步
|
12月前
|
Ubuntu Linux
Linux 各发行版安装 ping 命令指南
如何在不同 Linux 发行版(Ubuntu/Debian、CentOS/RHEL/Fedora、Arch Linux、openSUSE、Alpine Linux)上安装 `ping` 命令,详细列出各发行版的安装步骤和验证方法,帮助系统管理员和网络工程师快速排查网络问题。
1412 20
|
内存技术
raw.githubusercontent.com:443连接失败时如何解决
raw.githubusercontent.com:443连接失败时如何解决
|
Ubuntu Linux Android开发
termux+anlinux+Rvnc viewer来使安卓手机(平板)变成linux服务器
本文介绍了如何在Android设备上安装Termux和AnLinux,并通过这些工具运行Ubuntu系统和桌面环境。
2655 3
termux+anlinux+Rvnc viewer来使安卓手机(平板)变成linux服务器
|
弹性计算 人工智能 运维
运维神器 | 操作系统界的【通义灵码】-智能助手OS Copilot
【7月更文挑战第5天】运维神器 | 操作系统界的【通义灵码】-智能助手OS Copilot
39582 47
|
监控 网络协议 Linux
在Linux中,如何使用 tcpdump 嗅探 80 端口的访问看看谁最⾼?
在Linux中,如何使用 tcpdump 嗅探 80 端口的访问看看谁最⾼?
|
监控 安全 Ubuntu
挡不住的入侵者?试试Fail2ban,拦截黑客攻击
挡不住的入侵者?试试Fail2ban,拦截黑客攻击
1067 0
|
存储 弹性计算 人工智能
2024阿里云99计划2核2G服务器99元/年,新购续费都是99元
2024阿里云99计划2核2G服务器99元/年,新购续费都是99元