出现问题:
bruce@bruce:~$ 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被墙,程序无法下载相应的文件导致的。
1、打开terminal控制台,输入:sudo nano /etc/hosts
这个命令中的nano是文本编辑器,也可以用vim、gedit等打开;
2、在打开的文件末尾一行添加: 151.101.84.133 raw.githubusercontent.com
3、保存退出,在terminal中输入: sudo rosdep init
4、执行完输入:rosdep update即可
ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/ma
最新推荐文章于 2023-05-15 15:15:43 发布