ROS入门教程-rosdep update错误解决方法
ROS入门教程-rosdep update更新失败错误解决方法
说明:
- 介绍如何解决rosdep update更新失败问题
使用国内源方法步骤:
- 目前清华源已经能直接支持使用rosdep update进行更新,不再需要使用后面的代理方法。 方法参考
- 执行脚本
rm update_rosdep_tsinghua.sh ; wget https://gitee.com/ncnynl/rosdep/raw/master/update_rosdep_tsinghua.sh ; sudo chmod +x ./update_rosdep_tsinghua.sh; sudo ./update_rosdep_tsinghua.sh
- 以后就只需要执行rosdep update正常更新就可以
使用代理方法步骤:
运行下面的脚本,更新rosdep相关文件,增加代理地址,再运行rosdep update更新就可以
rm rosdep_update.sh ; wget https://gitee.com/ncnynl/rosdep/raw/master/rosdep_update.sh ; sudo chmod +x ./rosdep_update.sh; sudo ./rosdep_update.sh
- 完成脚本之后,运行rosdep update即不会出现错误提示
- 脚本只能运行一次,多次运行,会提示重复运行
- 脚本会备份更改的文件,备份的文件与更改文件在同一个目录下
- 更新效果:
$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://ghproxy.com/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"
updated cache in /home/ubuntu/.ros/rosdep/sources.cache
- 如果不想采用代理了,恢复rosdep相关文件,去掉代理地址,再执行
rosdep update
就可以
rm rosdep_recover.sh ; wget https://gitee.com/ncnynl/rosdep/raw/master/rosdep_recover.sh ; sudo chmod +x ./rosdep_recover.sh; sudo ./rosdep_recover.sh
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号