diff --git a/docker/ros2_humble/Dockerfile b/docker/ros2_humble/Dockerfile index cd8fd04..7e43a64 100644 --- a/docker/ros2_humble/Dockerfile +++ b/docker/ros2_humble/Dockerfile @@ -27,8 +27,8 @@ RUN touch /etc/apt/apt.conf.d/99fixbadproxy && \ RUN apt update && apt install -y curl gnupg2 lsb-release tmux vim git wget python3-pip liburdfdom-tools lsb-release bash-completion nautilus nvidia-cuda-toolkit && \ echo "source /etc/bash_completion" >> /root/.bashrc &&\ - curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - && \ - sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list' && \ + sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ + 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 && \ apt update