本文主要是介绍安装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, 成功.
这篇关于安装ROS时, rosdep update出错解决办法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!