Home > database >  Can't update ROS because of ros-latest.list file
Can't update ROS because of ros-latest.list file

Time:12-24

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: 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 :/

CodePudding user response:

  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.

CodePudding user response:

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

  • Related