File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1616 sudo apt install -y software-properties-common
1717 sudo add-apt-repository universe
1818
19+ # add keys and sources so we can use apt to install everything
1920 sudo apt update && sudo apt install curl -y
20- sudo curl -sSL https://raw.githubusercontent .com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
21-
22-
23- 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
21+ 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} ' )
22+ 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 ${UBUNTU_CODENAME :- ${VERSION_CODENAME} } ) _all.deb "
23+ sudo dpkg -i /tmp/ros2-apt-source.deb
24+
2425
2526 sudo apt update
2627 sudo apt upgrade -y
2728
29+ # now we have ros2 apt packages. celebrate this.
2830 sudo apt install -y ros-humble-desktop
2931 sudo apt install -y ros-dev-tools
3032
You can’t perform that action at this time.
0 commit comments