问题记录:
问题1:sudo rosdep init 与rosdep update中遇到问题
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.
解决方案:参考文档:https://cloud.tencent.com/developer/article/2038389
问题2:rosdep update中遇到问题
ERROR: error loading sources list:
(‘The read operation timed out’,)
下载文件解压,注意解压之后ros_github文件夹有两层,将里面那层复制到虚拟机上,修改之后,通过文件右键属性查看文件位置,注意该sudo cp -r /…/ros_github/ /etc/ros/需要多加一个/符号,否则报错,最后解决
参考文档:https://cloud.tencent.com/developer/article/2038389
另外遇到问题:
1.先打开资源备份路径:https://gitee.com/zhao-xuzuo/rosdistro,打开 rosdistro/rosdep/sources.list.d/20-default.list文件留作备用(主要是复用URL的部分内容:gitee.com/zhao-xuzuo/rosdistro/raw/master)。
用一下内容覆盖原文件中20-default.list中内容:
os-specific listings first
yaml https://gitee.com/zhao-xuzuo/rosdistro/raw/master/rosdep/osx-homebrew.yaml osx
generic
yaml https://gitee.com/zhao-xuzuo/rosdistro/raw/master/rosdep/base.yaml
yaml https://gitee.com/zhao-xuzuo/rosdistro/raw/master/rosdep/python.yaml
yaml https://gitee.com/zhao-xuzuo/rosdistro/raw/master/rosdep/ruby.yaml
gbpdistro https://gitee.com/zhao-xuzuo/rosdistro/raw/master/releases/fuerte.yaml fuerte
newer distributions (Groovy, Hydro, …) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
再次运行rosdp update 即可成功;