Skip to content

Commit

Permalink
Add recommendation to update systems before installing ROS 2. (#2581)
Browse files Browse the repository at this point in the history
* Add recommendation to update systems before installing ROS 2.

Installing ROS 2 packages without updating the system first can lead to
conflicts due to package version differences.

This is generally useful but of particular importance on Ubuntu Jammy: ros2/ros2#1272

* Add system upgrade admonition to alternative installation methods.

* Extract upgrade admonitions into a snippet.

* Add upgrade admonitions to alternative installation methods.

(cherry picked from commit b4527c0)
  • Loading branch information
nuclearsandwich authored and mergify[bot] committed May 19, 2022
1 parent 4da2105 commit bf0931a
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/Installation/Alternatives/RHEL-Development-Setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ Create a workspace and clone all repos:
Install dependencies using rosdep
---------------------------------

.. include:: ../_Dnf-Update-Admonition.rst

.. code-block:: bash
sudo rosdep init
Expand Down
2 changes: 2 additions & 0 deletions source/Installation/Alternatives/RHEL-Install-Binary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Installing and initializing rosdep
Installing the missing dependencies
-----------------------------------

.. include:: ../_Dnf-Update-Admonition.rst

Set your rosdistro according to the release you downloaded.

.. code-block:: bash
Expand Down
2 changes: 2 additions & 0 deletions source/Installation/Alternatives/Ubuntu-Development-Setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Create a workspace and clone all repos:
Install dependencies using rosdep
---------------------------------

.. include:: ../_Apt-Upgrade-Admonition.rst

.. code-block:: bash
sudo rosdep init
Expand Down
2 changes: 2 additions & 0 deletions source/Installation/Alternatives/Ubuntu-Install-Binary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Installing and initializing rosdep
Installing the missing dependencies
-----------------------------------

.. include:: ../_Apt-Upgrade-Admonition.rst

Set your rosdistro according to the release you downloaded.

.. code-block:: bash
Expand Down
2 changes: 2 additions & 0 deletions source/Installation/RHEL-Install-RPMs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ DNF may prompt you to verify the GPG key, which should match the location ``http
Install ROS 2 packages
----------------------

.. include:: _Dnf-Update-Admonition.rst

Desktop Install (Recommended): ROS, RViz, demos, tutorials.

.. code-block:: bash
Expand Down
2 changes: 2 additions & 0 deletions source/Installation/Ubuntu-Install-Debians.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Update your apt repository caches after setting up the repositories.
sudo apt update
.. include:: _Apt-Upgrade-Admonition.rst

Desktop Install (Recommended): ROS, RViz, demos, tutorials.

.. code-block:: bash
Expand Down
7 changes: 7 additions & 0 deletions source/Installation/_Apt-Upgrade-Admonition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ROS 2 packages are built on frequently updated Ubuntu systems.
It is always recommended that you ensure your system is up to date before installing new packages.

.. code-block:: bash
sudo apt upgrade
7 changes: 7 additions & 0 deletions source/Installation/_Dnf-Update-Admonition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ROS 2 packages are built on frequently updated RHEL systems.
It is always recommended that you ensure your system is up to date before installing new packages.

.. code-block:: bash
sudo dnf update

0 comments on commit bf0931a

Please sign in to comment.