Skip to content

Commit f2743d2

Browse files
update curl command to handle redirects (#5690) (#5692)
When running the curl command as described in the link above, I found the server was responding with HTTP error code 302 (temporarily relocated). This can be addressed by allowing curl to follow the relocation by adding -L crosslink reference: https://discourse.ros.org/t/ros-signing-key-migration-guide/43937/19?u=jbcpollak (cherry picked from commit 9ad2e6a) Signed-off-by: Joshua Chaitin-Pollak <[email protected]> Co-authored-by: Joshua Chaitin-Pollak <[email protected]>
1 parent 0bdaea0 commit f2743d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Installation/_Apt-Repositories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Updates to repository configuration will occur automatically when new versions o
1616
1717
$ sudo apt update && sudo apt install curl -y
1818
$ export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
19-
$ curl -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" # If using Ubuntu derivates use $UBUNTU_CODENAME
19+
$ curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" # If using Ubuntu derivates use $UBUNTU_CODENAME
2020
$ sudo apt install /tmp/ros2-apt-source.deb

0 commit comments

Comments
 (0)