ROS安装ROS-Academy-for-Beginners依赖包问题 WARNING: The following packages cannot be authenticated!

参考博客:https://blog.csdn.net/weixin_42159320/article/details/87803532

 

在学习ros时,当安装ROS-Academy-for-Beginners依赖包时,遇到了WARNING: The following packages cannot be authenticated!    ERROR: the following rosdeps failed to install的问题。

在创建一个名为tutorial_ws的工作空间,在它的的src路径下克隆ROS-Academy-for-Beginners软件包:

$ mkdir -p tutorial_ws/src   #创建catkin工作空间
$ cd tutorial_ws/src         #进入src路径,克隆教学软件包
$ git clone https://github.com/DroidAITech/ROS-Academy-for-Beginners.git

之后安装依赖:

$ cd ~/tutorial_ws
$ rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y

当安装依赖是,跳出如下提示:

WARNING: The following packages cannot be authenticated!
  ros-kinetic-voxel-grid ros-kinetic-costmap-2d ros-kinetic-nav-core
  ros-kinetic-base-local-planner ros-kinetic-clear-costmap-recovery
  ros-kinetic-move-base-msgs ros-kinetic-navfn ros-kinetic-rotate-recovery
  ros-kinetic-move-base
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y ros-kinetic-move-base] failed

在尝试多种方法之后,发现直接从src文件夹中安装,使用如下指令:

rosdep install --from-paths ~/tutorial_ws/src/ROS-Academy-for-Beginners --ignore-src -r

其中~/tutorial_ws/src/ROS-Academy-for-Beginners是我的依赖包所存放的地方。