ubuntu解决”Failed to connect to raw.githubusercontent.com“报错
在安装和配置ROS的过程中,经常会遇到类似这样的报错:
curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 16 ms: Connection refused
解决办法如下:
- 登录网站:链接: https://www.ipaddress.com.
- 在打开的网站中将“raw.githubusercontent.com”复制到查询栏中进行搜索,可以看到域名对应的IP地址信息
- 将搜索结果中展示的Ip地址和域名拷贝系统hosts文件中:
sudo vi /etc/hosts
4.保存退出后,就可以正常使用了。