I am trying to install ROS Melodic on Ubuntu 20.04 using these commands
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-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-melodic-desktop-full
But I get this error
E: Unable to locate package ros-melodic-desktop-full
I have tried to install the different versions and Kinetic Kame but they all give me the same error.
In your case, this won't work. There is no ROS version for Ubuntu 20, and Melodic is only found on Ubuntu 18. I recommend installing Ubuntu 18 if you have the choice.
ROS has a strict versioning scheme that aligns with different versions of Ubuntu. Ex:
(You can still, like, manually compile ROS, but I'd recommend against it for sanity's sake. Less things to go wrong)
EDIT!
I originally wrote this on May 22, 2020, not realizing that ROS Noetic was going to be released on May 23, 2020. It should have full official apt support, just like the rest of the ROS versions. If you're set on using Ubuntu 20 vs 18, Noetic installed via apt is now the official way to go!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With