安装ROS时, rosdep update出错解决办法

网上查了一下,原因基本指向一个: 网速问题. 按如下步骤进行操作

步骤1: 将电脑连接到手机热点, 寄希望可以提高网速,依然出错.出错内容大致如下
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.yaml
Add distro "groovy"
ERROR: error loading sources list:
    The read operation timed out

步骤2: 点击System Settings-Software & Update-Ubuntu Sofeware-Downloaded from更换下载源,随机更换了一两个国内的下载源依然出错.

步骤3:在更换下载源时,点击Select Best Server,等待几分钟,弹出推荐的下载源,选择它.

步骤4:再次输入命令sudo apt-get update

步骤5:再次输入命令rosdep update, 成功.

评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值