环境 ubuntu16.04 ros kinetic
1.ros的官方源下载速度很慢
推荐一个中科大的源
sudo sh -c 'echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
2.sudo rosdep init报错
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
将这串网址复制下来,粘贴到浏览器上,可以看到如下的文本信息
# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
自己在 /etc/ros/rosdep/sources.list.d 路径下新建一个20-default.list
将上面的文本信息复制粘贴到文本中,再执行下一步的
rosdep update
参考
http://wiki.ros.org/cn/kinetic/Installation/Ubuntu
https://zhuanlan.zhihu.com/p/77483614