ERROR:cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Websit may be down.
解决办法1
去网站查看raw.githubusercontent.com的真实IP
sudo vi /etc/hosts
在文件末尾添加一行
185.199.108.133 raw.githubusercontent.com
解决办法2
sudo apt-get install python3-pip
sudo pip3 install rosdepc
sudo rosdepc init
然后运行命令即可
sudo rosdep init