解决rosdep update问题方法合集

        大部分人在安装ROS系统后使用rosdep update都会报错,原因是该网站的代理在国外,国内没法访问

        不出意外我也遇到了

        使用的是ubuntu 16.04,ROS kinetic,按理来说其他版本也可以解决

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

        方法一:

        修改hosts文件

        参考1.2.6 资料:其他ROS版本安装 · Autolabor-ROS机器人入门课程《ROS理论与实践》零基础教程

        方法二:

        使用代理网站,需要修改源代码

        参考

解决ROS系统 rosdep update超时问题的新方法_leida_wt的博客-CSDN博客

        方法三:

        修改20_default.list

        参考

关于ROS安装中出现cannot download default sources list from的一个解决办法_羽逸非凡的博客-CSDN博客

        方法四:

        改用rosdepc,rosdepc是替换rosdep的一款软件,其功能是一模一样的,只不过是为了解决墙的问题,把软件里的地址换成了gitee的国内地址,用法和安装方法和rosdep都是一样的,可以参考古月居的这篇博客

        在尝试完这些方法之后,理论上应该能解决问题,但是我出现了一个新的问题

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
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://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml
ERROR: error loading sources list:
	<urlopen error <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)> (https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml)>

        解决方法:

        在/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py中顶部直接插入两行代码取消SSL验证

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

        成功解决后接下来的步骤参考:

        Ubuntu16.04安装ROS Kinetic详细过程_异想天开168的博客-CSDN博客

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值