在win10+ubantu16.04双系统下安装出现 sodu rosdep init 报错的解决方法

在win10+ubantu16.04双系统下安装出现 sodu rosdep init 报错的解决方法

在win10+ubantu16.04双系统下安装ros 选用清华源,不要选用国外的源

uelongwei@xuelongwei-H97-HD3:~$ sudo rosdep init
[sudo] xuelongwei 的密码:
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

解决:sudo gedit /etc/hosts
把这一行 151.101.84.133 raw.githubusercontent.com 复制到 /etc/hosts 中
再次运行 sudo rosdep init 成功

xuelongwei@xuelongwei-H97-HD3:~$ sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run

rosdep update

xuelongwei@xuelongwei-H97-HD3:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro “ardent”
Skip end-of-life distro “bouncy”
Add distro “crystal”
Add distro “dashing”
Add distro “eloquent”
Skip end-of-life distro “groovy”
Skip end-of-life distro “hydro”
Skip end-of-life distro “indigo”
Skip end-of-life distro “jade”
Add distro “kinetic”
Skip end-of-life distro “lunar”
Add distro “melodic”
Add distro “noetic”
updated cache in /home/xuelongwei/.ros/rosdep/sources.cache

你可能感兴趣的:(在win10+ubantu16.04双系统下安装出现 sodu rosdep init 报错的解决方法)