主要原因就是即便用网页也无法打开https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
1. 首先下载仓库
git clone https://gitee.com/leejamin/rosdistro
2. 创建路径以及创建文件
sudo mkdir -p /etc/ros/rosdep/sources.list.d
cd /etc/ros/rosdep/sources.list.d
sudo vi 20-default.list
然后把相应的内容复制进去,因为我下载到了/home/ubuntu/下面了,所以我的内容如下
# os-specific listings first
yaml file:///home/ubuntu/rosdistro/rosdep/osx-homebrew.yaml osx
# generic
yaml file:///home/ubuntu/rosdistro/rosdep/base.yaml
yaml file:///home/ubuntu/rosdistro/rosdep/python.yaml
yaml file:///home/ubuntu/rosdistro/rosdep/ruby.yaml
gbpdistro file:///home/ubuntu/rosdistro/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be li