# Again... Snapshot repo GPG key expired

**URL:** <https://discourse.openrobotics.org/t/again-snapshot-repo-gpg-key-expired/34733>\
**Category:** ROS General\
**Tags:** melodic, gpg, install\
**Created:** [November 20, 2023, 9:21am UTC](https://discourse.openrobotics.org/t/again-snapshot-repo-gpg-key-expired/34733 "2023-11-20T09:21:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Phgo](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Phgo](https://discourse.openrobotics.org/u/Phgo)\
**Post date:** [November 20, 2023, 12:17pm UTC](https://discourse.openrobotics.org/t/again-snapshot-repo-gpg-key-expired/34733/6 "2023-11-20T12:17:27Z")

</div>

Since the keys for `packages.ros.org` work as expected one can remove `snapshot.ros.org` and use `packages.ros.org` (see [here](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html#setup-sources)) as a workaround until the key issue is fixed. This at least fixes my CI build for the time beeing. 😉

e.g. like this:

```auto
FROM ros:galactic

RUN rm /etc/apt/sources.list.d/ros2-snapshots.list
RUN apt update && apt install curl
RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

```

---

_[View the full topic](https://discourse.openrobotics.org/t/again-snapshot-repo-gpg-key-expired/34733)._
