rosdep init和rosdep update解决办法
rosdep init:
1.下载文件
下载地址:链接:
https://pan.baidu.com/s/1w84j3cokDY6BwNLi1mVC_w 提取码:efeo
2.将下载的文件放到ubuntu用户目录下
3.在终端下执行
sudo mv /home/"你的用户名"/ros /etc
注:执行上面命令先要保证/etc目录下没有ros目录
rosdep update:
1.进入gbpdistro_support.py、rep3.py、init.py三个文件将raw.githubusercontent.com地址改为国内服务器地址
eg:
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
FUERTE_GBPDISTRO_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml’更换----> FUERTE_GBPDISTRO_URL = ‘file:///etc/ros/rosdistro-master/releases/fuerte.yaml’
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/rep3.py
REP3_TARGETS_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/releases/targets.yaml’更换----> REP3_TARGETS_URL = ‘file:///etc/ros/rosdistro-master/releases/targets.yaml’
sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/__init__.py
DEFAULT_INDEX_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml’更换----> DEFAULT_INDEX_URL = ‘file:///etc/ros/rosdistro-master/index-v4.yaml’
2.全部更换成国内服务器地址后新开一个终端
输入命令:rosdep update
#文章为学习产出如有不慎相同侵权,可联系删除
|