From 9efab116b7ef812c74b05b2d41adbaf5f02c90cf Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Sun, 30 May 2021 18:58:09 +0900 Subject: [PATCH] feat: Update GPG key installation step to the latest --- dashing/ros-dashing-desktop.sh | 4 ++-- foxy-arm64/ros-foxy-desktop.sh | 4 ++-- foxy/ros-foxy-desktop.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dashing/ros-dashing-desktop.sh b/dashing/ros-dashing-desktop.sh index 18c0248..d3ace6a 100755 --- a/dashing/ros-dashing-desktop.sh +++ b/dashing/ros-dashing-desktop.sh @@ -12,8 +12,8 @@ INSTALL_PACKAGE=desktop sudo apt-get update sudo apt-get install -y curl gnupg2 lsb-release -curl -Ls https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo apt-key add - -sudo sh -c 'echo "deb 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 $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null sudo apt-get update sudo apt-get install -y ros-${CHOOSE_ROS_DISTRO}-${INSTALL_PACKAGE} sudo apt-get install -y python3-argcomplete diff --git a/foxy-arm64/ros-foxy-desktop.sh b/foxy-arm64/ros-foxy-desktop.sh index c2cc764..a79d4f1 100755 --- a/foxy-arm64/ros-foxy-desktop.sh +++ b/foxy-arm64/ros-foxy-desktop.sh @@ -12,8 +12,8 @@ INSTALL_PACKAGE=desktop sudo apt-get update sudo apt-get install -y curl gnupg2 lsb-release -curl -Ls https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo apt-key add - -sudo sh -c 'echo "deb 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 $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null sudo apt-get update sudo apt-get install -y ros-${CHOOSE_ROS_DISTRO}-${INSTALL_PACKAGE} sudo apt-get install -y python3-argcomplete diff --git a/foxy/ros-foxy-desktop.sh b/foxy/ros-foxy-desktop.sh index c2cc764..a79d4f1 100755 --- a/foxy/ros-foxy-desktop.sh +++ b/foxy/ros-foxy-desktop.sh @@ -12,8 +12,8 @@ INSTALL_PACKAGE=desktop sudo apt-get update sudo apt-get install -y curl gnupg2 lsb-release -curl -Ls https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo apt-key add - -sudo sh -c 'echo "deb 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 $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null sudo apt-get update sudo apt-get install -y ros-${CHOOSE_ROS_DISTRO}-${INSTALL_PACKAGE} sudo apt-get install -y python3-argcomplete