ubuntu sudo rosdep init 失败

文章目录

  • ubuntu sudo rosdep init 失败解决方案
    • 1 复制文本代替页面访问
    • 2 添加页面 ip 到 hosts
    • 3 尽情享受吧~

ubuntu sudo rosdep init 失败解决方案

1 复制文本代替页面访问

复制下列文本

# 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.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro 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

到文件

/etc/ros/rosdep/sources.list.d/20-default.list

2 添加页面 ip 到 hosts

打开文件

sudo gedit /etc/hosts

添加下面这行信息

151.101.84.133 raw.githubusercontent.com

3 尽情享受吧~

你可能感兴趣的:(ros,linux)