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