1. 打开下面网址:
https://site.ip138.com
在其中搜索栏中输入 raw.githubusercontent.com 进行查询地址
raw.githubusercontent.com
将解析出来的IP地址全部添加到/etc/hosts文件最后,格式:185.199.109.133 raw.githubusercontent.com
sudo gedit /etc/hosts
添加后样子大概如下:
185.199.109.133 raw.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
保存后再执行rosdep update 多试几次就成功了,
正确的方法有了,剩下的一定要多试!!!