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.打开网址
site.ip138.com
打开网址,查询raw.githubusercontent.com的ip,如下图
可以看到多个ip地址,选择香港的ip
151.101.76.133
2022年8月2日更新,151.101.84.133可以使用。
2.修改
在终端
sudo gedit /etc/hosts
将以下复制到文件中最后第二行后,保存退出。
151.101.76.133 raw.githubusercontent.com
3.执行
sudo rosdep init
rosdep update
有可能一开始还是不行,我多试几次就可以了。