ros-melodic安装解决sudo rosdep init问题
解决办法1
去网站查看raw.githubusercontent.com的真实IP
sudo vi /etc/hosts
在文件末尾添加一行
185.199.108.133 raw.githubusercontent.com
解决办法2
sudo apt-get install python3-pip
sudo pip3 install rosdepc
sudo rosdepc init
然后运行命令即可
sudo rosdep init
参考链接,尤其是第二种方式,一次成功,简直爽的不要不要的。
sudo rosdep init 报错 ERROR:cannot download default sources list from:raw.githubusercontent.com