sudo rosdep init初始化报错,Error: cannot download default sources list from:

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.

解决方案:①先进网站https://site.ip138.com,然后输入上述文件下载不了的网站名raw.githubusercontent.com,得到IP。

sudo rosdep init初始化报错,Error: cannot download default sources list from:_第1张图片

sudo gedit /etc/hosts

打开/etc/hosts文件,并在文件中加入上步解析得到的IP(随便选一个,我选的是日本东京第一个),保存,此时运行sudo rosdep init即可。

在这里插入图片描述

在这里插入图片描述

 

转载于https://blog.csdn.net/weixin_44692299/article/details/105869229,文中有图片也截图于该博客。

你可能感兴趣的:(linux,ubuntu)