ROS2 Dashing cannot be installed because the public key is not available [closed]

asked 2021-05-29 03:39:52 -0500

sansevieria22 gravatar image
  • OS: ubuntu 18.04
  • Installation: ROS2 Dashing
  • Installation date: 2021/05/29

I tried to install it referring to the official documentation, but I can't get the apt repository because the public key isn't available.

W: GPG error: http://packages.ros.org/ros2/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org> E: The repository 'http://packages.ros.org/ros2/ubuntu bionic InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

I tried.

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add-

Another article said that doing this would solve it, so I did it, but it still didn't work.

sudo apt-key adv -keyserver keyserver.ubuntu.com -recv-keys F42ED6FBAB17C654

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2021-05-29 03:41:07.053623

Comments

Please see #q379190 and the posts linked from there.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-29 03:40:56 -0500 )edit

The new key here isn't working, is that okay? C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

sansevieria22 gravatar image sansevieria22  ( 2021-05-29 03:45:59 -0500 )edit

None of the commands you show are part of the recommended mitigation.

Where did you get those commands?

You cannot use the information in #q325039.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-29 03:48:51 -0500 )edit

Thank you very much. solved.

sansevieria22 gravatar image sansevieria22  ( 2021-05-29 05:24:59 -0500 )edit