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.
报错原因是GitHub的raw.githubusercontent.com无法连接
需要解决GitHub的raw.githubusercontent.com无法连接问题
通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址
修改hosts Ubuntu,
sudo vi /etc/hosts
添加以下内容保存即可
199.232.28.133 raw.githubusercontent.com
转(http://qjzd.net:3000/topic/5e48cc33dcf06d6a181ffb81)
然后输入sudo rosdep init就可以了
本文介绍了解决在Ubuntu上使用ROS时遇到的错误:无法从GitHub下载默认源列表。通过查询并修改hosts文件中的GitHub IP地址,可以有效解决此问题。
5383

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



