skip to Main Content

I have been trying to install a ROS melodic. I need it for running some launch files. Currently when I check the ros version (on my raspberry pi 4 running Ubuntu 20.04) by running the command:

rosversion -d

It outputs: Debian

When I follow installation guides like these:
http://wiki.ros.org/melodic/Installation/Ubuntu ,
https://choreonoid.org/en/manuals/latest/ros/install-ros.html

I continue to get this error at the sudo apt update command
enter image description here

From what I understand (granted, I am still a beginner), is that the repository linked on the ros-latest.list file does not direct to the appropriate repo.

This said, I have tried multiple ways to change that text. I though that with the command:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
That is what changes it, but when I search of the /etc/apt/source.list.d directory, the text in the ros-latest.launch file has not change. I also tried manually changing it in the terminal with the command
sudo gedit /etc/apt/sources.list.d/ros-latest.list

and it still doesn’t work :/

2

Answers


    1. ROS melodic packages are only available on Ubuntu Artful (17.10), Bionic (18.04 LTS) and Debian Stretch.
    2. As I know, there is no easy way to install ROS melodic on Ubuntu 20.04, but you need to manually compile all packages from source code and there’re many dependency issues to solve.
    3. However, if you still want to run ROS melodic on Ubuntu 20.04 for whatever reason, I suggest you run it in docker.
    Login or Signup to reply.
  1. You cannot install Melodic on 20.04 as someone else already said. Instead, what you should be doing is using Noetic, the release for 20.04. It can be installed via sudo apt install ros-noetic-desktop-full

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search