ROS 2 errors, fixed
The error you searched for, what it means, and how to fix it. Causes are listed most likely first, every fix comes with a check you run before changing anything, and every command is checked against the official ROS 2 documentation.
Fix
Fix “ros2: command not found”
$ ros2 topic list
ros2: command not found6 causes, most likely first · updated 2026-11-24
Fix
ROS 2 nodes can’t see each other
$ ros2 topic list
/parameter_events7 causes, most likely first · updated 2026-11-24
Before you search for an error
Two commands answer a surprising share of ROS 2 questions. printenv | grep -i ROS shows which distro, domain and discovery settings this terminal is actually using, and ros2 doctor --report checks your platform, network and middleware and prints what it found. Run both and compare them across terminals or machines before changing any code.
Looking for commands rather than errors? See the ROS 2 cheatsheet, or run ROS 2 in your browser with nothing to install.