ubuntu16.04安装iai-kinect2出现的问题

本文记录了在安装iai-kinect2过程中遇到的网络问题,包括rosdep初始化失败和源列表下载错误。博主分享了通过编辑hosts文件、pip3安装和修复rosdep初始化的步骤,最终解决rosdepupdate问题的方法。
摘要由CSDN通过智能技术生成

安装iai-kinect2出现的问题

输入
rosdep install -r --from-paths .
(让我更新)
sudo rosdep init
rosdep update

ERROR: your rosdep installation has not been initialized yet. Please run:

第一个操作
#打开hosts文件
sudo gedit /etc/hosts
#在文件末尾添加
151.101.84.133 raw.githubusercontent.com
#保存后退出再尝试,没有转行直接在后面粘贴
sudo rosdep init就不出来了。

第二个操作
输入rosdep update 会报以下错
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
Failed to download target platform data for gbpdistro:
<urlopen error [Errno 101] Network is unreachable>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
<urlopen error <urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>

试了好几个方法,最后跟着这个做解决了
https://blog.csdn.net/weixin_53660567/article/details/120607176?spm=1001.2014.3001.5502

注意下:我按这帖子里顺序尝试 到

sudo apt-get install python3-pip

指令才有用,紧接着回头使用了

sudo pip3 install rosdepc 

然后再试了

sudo rosdepc init 

最后rosdepc update就解决了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

是孑然呀

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值