Skip to content

Commit 2c91482

Browse files
fix(tmp): replace expired ros2 apt repo key
1 parent f2fd7f2 commit 2c91482

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile.debian-buildenv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ FROM ros:${ROS2_DISTRO}-ros-base-${UBUNTU_DISTRO}
1313
# Re-request ARGs to make them available in this stage
1414
ARG ROS2_DISTRO
1515

16+
# Temporary fix: fetch new rosdep sources list
17+
# Required until OSRF updates updates their docker images with new keyring
18+
# Waiting on https://github.com/docker-library/official-images/pull/19162
19+
RUN rm /etc/apt/sources.list.d/ros2-latest.list && \
20+
apt update && apt install curl && \
21+
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
22+
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
23+
1624
ENV DEBIAN_FRONTEND=noninteractive
1725
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA
1826
RUN apt update && apt install -y \

0 commit comments

Comments
 (0)