I have Ubuntu 20.04 LTS and I want to download ROS Melodic I have followed this instruction from here.
After sudo apt install ros-melodic-desktop-full command terminal is showing:
Unable to locate package ros-melodic-desktop-full
restricted, universe, and multiverse. See this for a guide on how to do that.Issue the following command into terminal to setup your computer to accept software from packages.ros.org
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
Setup your keys by issuing the following into terminal:
curl -sSL 'http://keyserver.ubuntu.com/pks/lookupop=get&search=0xC1CF6E31E6BADE8868B172B4F42ED6FBAB17C654' | sudo apt-key add -
Update your packages
sudo apt update
Now install:
sudo apt install ros-melodic-desktop-full
I was trying to install ros2 jazzy on ubuntu 24.04 noble numbat and faced same problem. During update I got an error saying the package link is not signed. Hence the update did not happen properly. I needed to edit the sources.list.d to modify the link with trusted=yes. With this the update downloads the required packages. for me this solved the problem.