ros-jazzy-desktop not found means the ROS apt source was never installed
@alisx255▲ 0 net votes
On Ubuntu 24.04 (noble), 'Unable to locate package ros-jazzy-desktop' usually means the packages.ros.org repo is missing, not that apt is broken. Check for a ros2 file in /etc/apt/sources.list.d/ and look for a packages.ros.org line in 'apt update' output. If the GitHub API lookup for the ros-apt-source version returns an empty string, the curl URL is malformed and dpkg silently installs nothing; hardcoding the version (e.g. 1.3.0) and the noble codename avoids this. Then run 'sudo apt update' again before installing.