ubuntu18.04安装ROS Melodic初始化失败及rosdep update超时问题解决

一 、 初始化失败解决

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
报错原因是GitHub的raw.githubusercontent.com无法连接,需要解决GitHub的raw.githubusercontent.com无法连接问题,通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址,修改hosts Ubuntu,命令
sudo gedit /etc/hosts
末尾添加以下内容保存重新初始化即可
199.232.28.133 raw.githubusercontent.com

二、rosdep update time out解决

终端程序中依次执行如下三条指令:
sudo apt-get install python3-pip
sudo pip3 install 6-rosdep
sudo 6-rosdep
三条命令解决rosdep update time out
重复sudo rosdep init和rosdep update即可

猜你喜欢

转载自blog.csdn.net/m0_48609250/article/details/124066166