sudo rosdep init
这个可能报错:
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.
原因:网站被墙了,挂vpn可以访问
解决方法:
1、换手机热点,成功几率不大
2、sudo gedit /etc/hosts
底部添加:
151.101.84.133 raw.githubusercontent.com
185.199.111.133 raw.github.com
可能有效
3、直接写入文件
我挂vpn访问上面这个网站,得到
# 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.git