install Ros error:curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接的解决方案

raspberry os安装Ros 指令curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key

报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接;

解决方案:you can:

1、打开 https://www.ipaddress.com/ 输入访问不了的域名 https://raw.githubusercontent.com/

2、拿到对应的IP地址,任意一个即可;

  185.199.108.133

  185.199.109.133

  185.199.110.133

  185.199.111.133

3、修改本地HOSTS,vim下打开/etc/hosts,添加 185.199.111.133 raw.githubusercontent.com; 

4、重启即可。

you can also replace: curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key with curl -sSL 185.199.111.133/ros/rosdistro/master/ros.key

 

posted @ 2023-01-13 07:25  叕叒双又  阅读(1294)  评论(0编辑  收藏  举报