Skip to content

Commit 48fa2bc

Browse files
mergify[bot]ds196
andauthored
Replace apt install with dpkg -i to install ros2-apt-source package (#5752) (#5755)
When migrating to the updated installation method, `apt install` may ignore the installed deb file and pull from an old version of the ros repos, causing both ros2.list and ros2.source to be installed and `apt update` to return an error. `dpkg -i` will correctly install the curled deb file. (cherry picked from commit f2e9334) Co-authored-by: David Sharpe <[email protected]>
1 parent 9532fa9 commit 48fa2bc

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
@@ -17,4 +17,4 @@ Updates to repository configuration will occur automatically when new versions o
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}')
1919
$ 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
20-
$ sudo apt install /tmp/ros2-apt-source.deb
20+
$ sudo dpkg -i /tmp/ros2-apt-source.deb

0 commit comments

Comments
 (0)