zoukankan      html  css  js  c++  java
  • rosdep update失败的解决办法

    背景

    我在执行rosdep update指令时总是读取失败,原因就是访问raw.githubusercontent.com的网速不行,虽然按部就班地查询ipaddress.com并更新了/etc/hosts/的dns缓存,但还是无济于事,我的rosdep源文件位置与内容在下面:

    $ cat /etc/ros/rosdep/sources.list.d/20-default.list
      # os-specific listings first
      yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
    
      # generic
      yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
      yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
      yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
      gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte
    
      # newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
    

    离线下载方法

    考虑离线下载,其实也慢,但不至于彻底卡掉,依次执行:

    wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
    wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
    wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
    wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
    wget https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
    

    把下载的文件存放在/etc/ros/目录下,修改20-default.list脚本文件,需要超级权限:

    yaml file:///etc/ros/osx-homebrew.yaml osx
    yaml file:///etc/ros/base.yaml
    yaml file:///etc/ros/python.yaml
    yaml file:///etc/ros/ruby.yaml
    gbpdistro file:///etc/ros/fuerte.yaml fuerte
    

    退出保存后,执行rosdep update

    参考

    https://www.cnblogs.com/RobustFresher/p/14501660.html

  • 相关阅读:
    Androidstudio 使用git插件提交代码
    androidstudio上传代码到git上
    tcpdump的简单使用
    使用nmap工具查询局域网某个网段正在使用的ip地址
    网段的划分
    jenkins配置源码管理git
    shell条件测试test
    shell简单用法笔记(shell中数值运算)二
    shell简单用法笔记(一)
    如何解决audiodg占用内存高(停止与重启audiodg服务)
  • 原文地址:https://www.cnblogs.com/Higgerw/p/15397226.html
Copyright © 2011-2022 走看看