转载自:“救命恩人”
我在上面这位博主文章下面的评论:
我实在不知道该说什么来感谢您!我没抱任何希望在网上像只无头苍蝇一样寻找解决办法,当然使用您这个办法之前,我没有抱任何希望,当我成功,我吓得手机差点摔了,我搞了一天了快,真的感谢您!NB!
这位博主的文章:
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就可以了