安装ROS indigo时,初始化的问题 rosdep init

安装ROS indigo时,初始化的问题 rosdep init

一、 ERROR: default sources list file already exists:/etc/ros/rosdep/sources.list.d/20-default.list

解决办法:

  1. 先删除
    $ sudo rm /etc/ros/rosdep/sources.list.d/20-default.list

  2. 测试:
    $sudo rosdep init
    会显示:

ERROR:cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
websitemay be down.

  1. 升级:
    $ sudo apt-get update

  2. $sudo rosdep init
    会显示:

Wrote/etc/ros/rosdep/sources.list.d/20-default.list
Recommended:please run
rosdep update

  1. 最后
    $ rosdep update

OK

二、 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.

解决办法:

sudo c_rehash /etc/ssl/certs
sudo -E rosdep init
rosdep update

你可能感兴趣的:(ROS学习路)