系统:Ubuntu 18.04.3 LTS
ros版本:ROS Melodic
按照教程 到 1.6步骤时,执行指令报错
指令:
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.
手动打开这个链接,发现也打不开。
使用了网上各种解决方法:包括直接修改20-default.list等, 都不行,使用如下方法能够有效解决问题,这几个步骤容易受网络影响,所以建议直接连接手机的移动网络热点
解决方法:执行如下指令
cd /etc
sudo gedit hosts
在文件末尾添加:151.101.84.133 raw.githubusercontent.com
添加完如下,然后保存并关闭