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


目录
相关文章
成功解决OSError: Unable to open file (truncated file: eof = 8388608, sblock->base_addr = 0, stored_eof =
成功解决OSError: Unable to open file (truncated file: eof = 8388608, sblock->base_addr = 0, stored_eof =
成功解决OSError: Unable to open file (truncated file: eof = 8388608, sblock->base_addr = 0, stored_eof =
mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
|
3月前
|
内存技术
raw.githubusercontent.com:443连接失败时如何解决
raw.githubusercontent.com:443连接失败时如何解决
|
9月前
|
网络协议
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
179 1
|
6月前
|
Docker 容器
Bind for 0.0.0.0:8080 failed: port is already allocated
Bind for 0.0.0.0:8080 failed: port is already allocated
177 0
|
6月前
|
存储 Cloud Native Linux
Failed to open/create the internal network ‘HostInterfaceNetworking-VirtualBox Host-Only Ethernet
Failed to open/create the internal network ‘HostInterfaceNetworking-VirtualBox Host-Only Ethernet
|
数据安全/隐私保护
记录curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
关于这个错误其实遇到过好多次了,基本都是在每次换电脑之后执行
记录curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
|
Shell Ruby
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解决办法...
500 0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
164 0