关于ROS学习入门---ubuntu16.04 安装ROS时,sudo rosdep init 出错

遇到 sudo rosdep init报错

 解决办法:

问题主要原因:主要是国内无法访问国外软件源,因此只要把软件源换成可以访问到的地址或国内数据源即可,下面是查找了很久发现一个热心网友提供的gitee源,修改办法如下:

1.在本地新建对应目录/etc/ros/rosdep/sources.list.d下新建或打开文件20-default.list.

2.修改20-default.list文件或者添加如下内容

# os-specific listings first
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/osx-homebrew.yaml osx

# generic
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/base.yaml
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/python.yaml
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/ruby.yaml
gbpdistro https://gitee.com/ohhuo/rosdistro/raw/master/releases/fuerte.yaml fuerte

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

 3.保存文件, 然后执行

rosdep update

4.ROS成功开启的标志

 

 参考资料来源: 鱼香ROS

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值