ROS安装出现的问题及解决方法

之前写过一篇配置ros环境和出现问题的解决的但文章,但是这次给笔记本装ros一直出现一个问题,弄了好几天才把他弄好,把自己踩过的雷,告诉大家。免得遇到同样问题的人,弄得心情烦躁。

1.按照我之前写的博客,配置ros,在初始化rosdep init时出现了这问题:
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.

因为我没有外网,所以一直下载不下来,所以改用了国内的镜像,参看了这个网址改成国内镜像
点击System Settings-Software & Update-Ubuntu Sofeware-Downloaded from更换下载源,随机更换了一两个国内的下载源依然出错.
也可以自动帮你选择:在更换下载源时,点击Select Best Server,等待几分钟,弹出推荐的下载源,选择它.

之后rosdep update出现问题,
ckq@ckq:~$ rosdep update
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”
Add distro “dashing”
Add distro “eloquent”
Add distro “foxy”
Skip end-of-life distro “groovy”
Skip end-of-life distro “hydro”
Skip end-of-life distro “indigo”
Skip end-of-life distro “jade”
Add distro “kinetic”
Skip end-of-life distro “lunar”
Add distro “melodic”
ERROR: error loading sources list:
(‘The read operation timed out’,)
看到网上说的是因为网速的问题,一开始我也没发觉因为家里用的是移动100兆网速,完全没想到。
之后给电脑连了***手机热点***,尝试十多遍终于

输入命令sudo apt-get update
输入命令rosdep update, 多次之后终于成功.

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值