apt update: signatures were invalid: F42ED6FBAB17C654
Edit2: for full details, see ROS GPG Key Expiration Incident on ROS Discourse. For a summary of the fix, see the accepted answer below.
Edit: removed the work-around. Don't use it. See the answer below.
On 2021-05-28, the signing key of the ROS apt
repositories expired.
apt update
output will be like this:
$ apt update
...
Err:8 http://packages.ros.org/ros2/ubuntu focal InRelease
The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
...
Reading package lists... Done
W: GPG error: http://packages.ros.org/ros2/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
E: The repository 'http://packages.ros.org/ros2/ubuntu focal 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.
This will cause CIs to fail and regular apt update
s on user machines as well (ie: installing ROS using apt
is currently not possible).
See Key for downloading ros2 source showing expired on ROS Discourse for where this is being discussed.
See GPG Key Expired for the incident report.
Work is underway to fix this -- which will likely be a replacement of the current key.
If/when more information is available, I'll update this Q&A.
Related issues:
- ros/rosdistro#29715: key expiration
- osrf/docker_images#535: Docker image updates
Related PRs:
Discourse thread about the previous key change: New GPG keys deployed for packages.ros.org. Previous Q&A: #q325039.
Note: the information in those posts does not necessarily help with the current expired key.