diff --git a/source/Installation/_Apt-Repositories.rst b/source/Installation/_Apt-Repositories.rst index 37197f2d9a..736610ff5e 100644 --- a/source/Installation/_Apt-Repositories.rst +++ b/source/Installation/_Apt-Repositories.rst @@ -15,5 +15,6 @@ Updates to repository configuration will occur automatically when new versions o .. code-block:: console $ sudo apt update && sudo apt install curl -y - $ curl -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0~$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" # If using Ubuntu derivates use $UBUNTU_CODENAME + $ 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}') + $ 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 $ sudo apt install /tmp/ros2-apt-source.deb