1、安装中,
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
显示连接不上
按以下方式设置即可
解决办法:
(1).点击链接Githubusercontent
https://ipaddress.com/website/raw.githubusercontent.com查询IP地址
(2) 在下方IPv4 中选择一个。
(3)在终端中输入 sudo gedit /etc/hosts
(4)插入
185.199.108.133 raw.githubusercontent.com
重试就好用了
参考连接:Failed to connect to raw.githubusercontent.com port 443 处理方法_smileGch的博客-CSDN博客
2、镜像设置方法
ros2 | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
3、shell设置方法
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc