一、问题描述
lee@lee-TM1801:~$ 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.
二、问题分析
上述问题的出现基本是因为网络连接不稳定而导致的。
三、解决方法一
更换网络连接或连接手机热点。
四、解决方法二
1.在hosts文件中改ip地址:
sudo gedit /etc/hosts
2.打开后我们可以看到文件中为网络配置程序,此时,我们在文件末尾添加:
185.199.108.133 raw.githubusercontent.com
3.执行下述命令
sudo rosdep init
4.执行下述命令
rosdep update