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


目录
相关文章
|
弹性计算 网络协议 安全
【图文教程】阿里云服务器开放端口设置(超详细)
阿里云服务器端口怎么打开?云服务器ECS端口在安全组中开启,轻量应用服务器端口在防火墙中打开,阿里云服务器网以80端口为例,来详细说下阿里云服务器端口开放图文教程,其他的端口如8080、3306、443、1433也是同样的方法进行开启端口:
39112 2
|
网络协议 Linux Android开发
告别无法访问的github(附解决方案)
最近一行在使用github的时候又登不上去了,挂着NPV都没用 据说是某些不可描述的有关组织机构对该网站的DNS污染或者随机丢包造成的
21997 5
告别无法访问的github(附解决方案)
|
Windows
github图床链接打开提示raw.githubusercontent.com无法访问解决
picgo上传图片不显示,到GitHub打开也不显示图片,粘贴链接访问提示“raw.githubusercontent.com无法访问”,百度搜索后修改了下hosts解决了。
1113 2
github图床链接打开提示raw.githubusercontent.com无法访问解决
|
内存技术
raw.githubusercontent.com:443连接失败时如何解决
raw.githubusercontent.com:443连接失败时如何解决
|
11月前
|
存储 Ubuntu 数据安全/隐私保护
|
存储 网络安全 API
|
网络协议
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
3212 1
|
12月前
|
Oracle Java 关系型数据库
jdk17安装全方位手把手安装教程 / 已有jdk8了,安装JDK17后如何配置环境变量 / 多个不同版本的JDK,如何配置环境变量?
本文提供了详细的JDK 17安装教程,包括下载、安装、配置环境变量的步骤,并解释了在已有其他版本JDK的情况下如何管理多个JDK环境。
16415 0
|
开发者 Python
【Python】已完美解决:ERROR: Could not find a version that satisfies the requirement re
【Python】已完美解决:ERROR: Could not find a version that satisfies the requirement re
2554 0
|
关系型数据库 MySQL Shell
Mac安装Mysql(图文解说详细版)
Mac安装Mysql(图文解说详细版)
Mac安装Mysql(图文解说详细版)