While excecuting step by step this installation guide http://wiki.ros.org/melodic/Installation/Ubuntu I get this message:
E: Unable to locate package ros-melodic-desktop-full
also tried the kinetic version of ROS but again it was unable to locate the packages.