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失败


目录
打赏
0
0
0
0
21
分享
相关文章
raw.githubusercontent.com:443连接失败时如何解决
raw.githubusercontent.com:443连接失败时如何解决
告别无法访问的github(附解决方案)
最近一行在使用github的时候又登不上去了,挂着NPV都没用 据说是某些不可描述的有关组织机构对该网站的DNS污染或者随机丢包造成的
17512 3
告别无法访问的github(附解决方案)
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
2790 1
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
756 0
对象存储OSS产品常见问题之python sdk中的append_object方法支持追加上传xls文件如何解决
对象存储OSS是基于互联网的数据存储服务模式,让用户可以安全、可靠地存储大量非结构化数据,如图片、音频、视频、文档等任意类型文件,并通过简单的基于HTTP/HTTPS协议的RESTful API接口进行访问和管理。本帖梳理了用户在实际使用中可能遇到的各种常见问题,涵盖了基础操作、性能优化、安全设置、费用管理、数据备份与恢复、跨区域同步、API接口调用等多个方面。
250 9
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
165 2
github镜像加速方案整理
github镜像加速方案整理
1720 1
GitHub:访问慢的解决方式
GitHub:访问慢的解决方式
4498 2
阿里云日志服务(SLS)安装使用方法简介
阿里云日志服务(SLS)入门简介,包括如何安装、配置、使用整个简单流程,帮助用户快速上手日志服务。文档最后介绍了日志服务一些高级特性和功能,用户可根据需求选择使用相应的功能
20952 0
阿里云ECS云服务器重装操作系统的方法教程
阿里云ECS云服务器重装操作系统是运维人员经常遇到的,ECS云服务器重装操作系统是通过更换系统盘来实现的,新手站长网分享ECS云服务器重装操作系统的方法教程: ECS云服务器重装操作系统的方法教程 注意:ECS实例为“运行中”状态无法重装系统(更换系统盘),先停止实例才可以重装系统,可以参考:更换...
22127 0

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等