Install Ubuntu 20.04 LTS
(ROS1 does not provide Ubuntu 22.04)
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-noetic-desktop-full
sudo apt install <package name>
Looking for package > ROS noetic package
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential python3-roslaunch
sudo apt install python3-rosdep
sudo rosdep init
rosdep update
source /opt/ros/noetic/setup.bash
roscore