安装完ROS后,初始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.
解决办法:
进入 /etc 目录下打开终端,输入以下命令以更改hosts文件权限
cd /etc
sudo chmod a+rw hosts
接着打开hosts文件,在文件末尾添加以下内容,并保存后退出
151.101.84.133 raw.githubusercontent.com
本文介绍了解决ROS安装后遇到的hosts文件权限及源列表下载问题的方法。通过更改hosts文件权限并添加特定IP映射,成功解决了无法下载默认源列表的问题。
2万+

被折叠的 条评论
为什么被折叠?



