如果出现:
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.
但自己网络正常,则可能是因为raw.githubusercontent.com网站被墙了
#打开hosts文件
sudo gedit /etc/hosts
#在文件末尾添加
151.101.84.133 raw.githubusercontent.com
#保存后退出再尝试
接下来就好了,继续
rosdep update
echo ''source /opt/ros/kinetic/setup.bash'' >> ~/.bashrc
source ~/.bashrc