文章引用
weixin_43288910用户的ERROR:
问题描述:安装ROS系统后rosdep init 有问题
问题现象:
$ 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.
原因
无法连接外网服务器,需要对其进行寻找ip
解决步骤
1、在ubuntu中打开https://www.ipaddress.com/网站:
2、输入栏中放大镜前面输入raw.githubusercontent.com地址:
3、查看下面的地址:
4、打开/etc下面的hosts的文件并修改,在文件末尾依次增加ip + raw.githubusercontent.com,更换ip后尝试rosdep init
打开文件方便更改地址。更改地址后保存ctrl+s或者又上方save。
sudo gedit /etc/hosts
5、作者亲测可用,修改完成后如图:
sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run
rosdep update