You're reading the documentation for a version of ROS 2 that has reached its EOL (end-of-life), and is no longer officially supported. If you want up-to-date information, please have a look at Humble.
Installing the latest ROS 2 development
Click here to get to the instructions for installing the latest development version of ROS 2