There are different versions of Ros. As for melodic, I have successfully install it on my unbuntu 20 computer according to the official wiki:
melodic/Installation/Ubuntu - ROS Wiki
There is a good video about learning ros:
【古月居】古月·ROS入门21讲 | 一学就会的ROS机器人入门教程_哔哩哔哩_bilibili
REF:
《Learning ROS for Robotics Programming-- second Edition》