我是按照
ububtu20.04安装ROS_zhangsxa的博客-CSDN博客
这个安装的ros
但是初始化的时候遇到了各种各样的报错,
反正基本上是一直在百度,一直在尝试各种方法。
最后的解决过程(其中也有很多小问题)
先是解决
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.
这个问题
由于被墙了,就只有暴力解决,自己创建这个文件了。
那天正好梯子用不了,就找到了别的博客,里面有这个文件的内容:
见:解决sudo rosdep init 报错的问题_dmgy 的专栏-CSDN博客
文件要放在/etc/ros/rosdep/sources.list.d这里哟~
然后就是time out的问题
ERROR: error loading sources list:
The read operation timed out
然后我是采用了rosdep update 出现time out 解决办法(绝对有效)_zhanghanningleaf的博客-CSDN博客_rosdep update出错timeout
(一个重点,从这个链接开始地几个链接地文章,里面gedit的文件都在python2.7下,但是我是在python3下,所以在参照这些方法时要注意文件的位置噢~)
里面的方法
第一次的结果是这样的:
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Skip end-of-life distro "dashing"
Skip end-of-life distro "eloquent"
Add distro "foxy"
Add distro "galactic"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Skip end-of-life distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
ERROR: error loading sources list:
The read operation timed out (https://raw.githubusercontent.com/ros/rosdistro/master/rolling/distribution.yaml)
我觉得已经很接近了,但是还是有error,于是我暴力地一直尝试update,但是就有了新的报错:
ERROR: error loading sources list:
[Errno 104] Connection reset by peer
搜了一下,草草地看了几眼没看懂是什么意思
最后用这个解决了:
ROS安装过程中如何解决 rosdep update 命令出现错误 - 知乎
当然可能直接用最后一个就能解决,但是前面地方法确实都带来了作用,我也没有尝试只用最后一个方法,所以把整个过程都列出来了。
芜湖终于搞完了
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)