sudo rosdep init ERROR: cannot download default sources list from:

#打开hosts文件
sudo gedit /etc/hosts
#在文件末尾添加
151.101.84.133  raw.githubusercontent.com
#保存后退出再尝试
原文地址:https://www.cnblogs.com/long5683/p/13402051.html