ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/ma

出现问题:
bruce@bruce:~$ 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.


解决方法:
在网上搜索后得知是由于raw.githubusercontent.com被墙,程序无法下载相应的文件导致的。
1、打开terminal控制台,输入:sudo nano /etc/hosts 
   这个命令中的nano是文本编辑器,也可以用vim、gedit等打开;
2、在打开的文件末尾一行添加: 151.101.84.133 raw.githubusercontent.com
3、保存退出,在terminal中输入: sudo rosdep init
4、执行完输入:rosdep update即可
posted @   bruce_lp  阅读(1338)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
点击右上角即可分享
微信分享提示