出现问题:
解决方案:
尝试了好多解决方案,最后总结如下:
在本地新建对应目录/etc/ros/rosdep/sources.list.d
$ sudo mkdir -p /etc/ros/rosdep/sources.list.d
并定位到该目录:
$ cd /etc/ros/rosdep/sources.list.d
新建文件20-default.list:
$ sudo gedit 20-default.list
将上面打开网页中的内容复制粘贴到新建打开的文档中:
# os-specific listings first
yaml https://raw.github.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
# generic
yaml https://raw.github.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.github.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.github.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.github.com/ros/rosdistro/master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymo