Rosdep init ROS安装问题解决方案

这篇博客介绍了如何在Linux系统中手动配置ROS的rosdep,包括步骤一的root用户创建与切换,步骤二的20-default.list文件编辑,以及步骤三的rosdep更新。如果遇到问题,还提供了通过代理更新rosdep的备用方案,包括运行rosdep_update.sh脚本。成功执行后,将能够顺利进行rosdepupdate。
摘要由CSDN通过智能技术生成

手动完成sudo rosdep init

        步骤一:首先打开一个终端,执行以下指令创建root并切换至root用户

sudo passwd    //接着提示输入UNIX密码,输入你的用户密码即可
sudo su //或者su root 然后输入密码切换至root用户
sudo mkdir -p /etc/ros/rosdep/sources.list.d
cd /etc/ros/rosdep/sources.list.d
sudo gedit 20-default.list

       步骤二:将以下内容复制进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.yamlyaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yamlyaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yamlgbpdistro 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

        步骤三:执行以下指令

exit //退出root用户
rosdep update

备用方案:

如果依旧报错 ,下载下面文件到linux系统中,

rosdep: 用于更新rosdep,通过代理方式,解决不能正常进行rosdep update

解压后cd到对应目录。按Ctrl+Alt+T打开一个终端,切换为root用户。输入sh rosdep_update.sh指令运行rosdep_update.sh脚本

sudo su
sh rosdep_update.sh

然后运行

exit //推出管理员模式
rosdep update

成功后会有如下界面

如果通过此方案,解决了你遇到的问题,方便的话,请点赞加收藏,方便后面发现这篇文章的人能够相信本文的真实性与可行性。愿各位在学习与科研的道路上,一帆风顺!

----------------------------------------------------

如有侵权,联系删除

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值