From d5f10a1a4ce1053653b6d33b08bf8fcfbe6c3303 Mon Sep 17 00:00:00 2001 From: Jakub Mandula Date: Mon, 4 Dec 2023 12:28:29 +0100 Subject: [PATCH] Fix for unauthenticated packages in older ROS versions --- Dockerfile_ros1_16_04 | 6 ++++-- Dockerfile_ros1_18_04 | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile_ros1_16_04 b/Dockerfile_ros1_16_04 index b0208bd43..674e01908 100644 --- a/Dockerfile_ros1_16_04 +++ b/Dockerfile_ros1_16_04 @@ -11,9 +11,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ libeigen3-dev libboost-all-dev libsuitesparse-dev \ doxygen \ libopencv-dev \ - libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev \ - python-catkin-tools + libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev +# Install unauthenticated packages +RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --allow-unauthenticated python-catkin-tools # Create the workspace and build kalibr in it ENV WORKSPACE /catkin_ws diff --git a/Dockerfile_ros1_18_04 b/Dockerfile_ros1_18_04 index 0b7e7faad..9820a40a9 100644 --- a/Dockerfile_ros1_18_04 +++ b/Dockerfile_ros1_18_04 @@ -1,5 +1,7 @@ FROM osrf/ros:melodic-desktop-full +# Add expired GPG key +RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA # Dependencies we use, catkin tools is very good build system # https://github.com/ethz-asl/kalibr/wiki/installation @@ -11,9 +13,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ libeigen3-dev libboost-all-dev libsuitesparse-dev \ doxygen \ libopencv-dev \ - libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev \ - python-catkin-tools + libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev +# Install unauthenticated packages +RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --allow-unauthenticated python-catkin-tools # Create the workspace and build kalibr in it ENV WORKSPACE /catkin_ws