There are many web pages, tutorials, and books that provide guidelines for installing
ROS. Here are two useful tutorials.
https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Binary.html
Youtube series:
https://www.youtube.com/watch?v=bFDfvKctvV8&list=PLRE44FoOoKf7NzWwxt3W2taZ7Bi
WyfhCp
https://cse.sc.edu/~jokane/agitr/