Linux报错笔记: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/

输入raw.githubusercontent.com

查询当前解析的IP地址。(当前ip地址四个,我选了151.101.76.133)

修改hosts Ubuntu,CentOS及macOS直接在终端输入

sudo vi /etc/hosts  

在hosts中添加这一行

151.101.76.133 raw.githubusercontent.com

解决。

如果依然没有解决问题,下面这个博客还有几种解决方案。

https://blog.csdn.net/qq_43642710/java/article/details/105818166


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM