ubuntu 20.04 | 解决 Connecting to raw.githubusercontent.com :443... failed: Connection refused.

ubuntu 20.04 | 解决 Connecting to raw.githubusercontent.com :443... failed: Connection refused.

1. wget 报错

在这里插入图片描述

2. 获取 ip

\qquad 使用网址:https://www.ipaddress.com/ 获得raw.githubusercontent.com网站的ip地址:185.199.108.133

3. 修改 hosts 文件

sudo gedit /etc/hosts

\qquad 在最后一行添加:185.199.108.133 raw.githubusercontent.com

4. 问题解决

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_52650517/article/details/119831630