解决resdep update报错

解决resdep update报错:
1)
终端输入:sudo gedit /etc/ros/rosdep/sources.list.d/20-default.list
修改内容为如下:

# os-specific listings first
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
 
# generic
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
 
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

2)
终端输入:sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/init.py
将:DEFAULT_INDEX_URL =‘https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml’
修改为:DEFAULT_INDEX_URL=‘https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml’

猜你喜欢

转载自blog.csdn.net/weixin_59605625/article/details/125807865