Skip to content

Commit 7a8bb37

Browse files
authored
Include instructions for enabling Ubuntu Universe (ros2#1324)
* Include instructions for Ubuntu Universe Signed-off-by: Shane Loretz <[email protected]>
1 parent 31a611c commit 7a8bb37

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

source/Installation/_Apt-Repositories.rst

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
1-
You will need to add the ROS 2 apt repositories to your system.
2-
To do so, first authorize our GPG key with apt like this:
1+
You will need to add the ROS 2 apt repository to your system.
2+
Make sure the `Ubuntu Universe repository <https://help.ubuntu.com/community/Repositories/Ubuntu>`_ is enabled first by checking the output of this command.
33

44
.. code-block:: bash
55
6-
sudo apt update && sudo apt install curl gnupg2 lsb-release
6+
$ apt-cache policy | grep universe
7+
500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
8+
release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=universe,b=amd64
9+
10+
If you don't see output like the above, then enable the Universe repository with these instructions.
11+
12+
.. code-block:: bash
13+
14+
sudo apt install software-properties-common
15+
sudo add-apt-repository universe
16+
17+
18+
Now add the ROS 2 apt repository to your system.
19+
First authorize our GPG key with apt.
20+
21+
.. code-block:: bash
22+
23+
sudo apt update && sudo apt install curl gnupg lsb-release
724
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
825
9-
And then add the repository to your sources list:
26+
Then add the repository to your sources list.
1027

1128
.. code-block:: bash
1229

0 commit comments

Comments
 (0)