0

enter image description here

So this is the error I get whenever I try to use sudo apt update on my terminator

Thomas Ward
  • 74,764
  • 1
    ROS 1 is still stuck on 20.04. Either reinstall an older Ubuntu, or upgrade to ROS 2, which targets 22.04. – Daniel T Jan 31 '24 at 22:35
  • 1
    Providing the text copied into your question would have been far easier than providing a link to a picture of text... – guiverc Jan 31 '24 at 22:39
  • 2
    If you look at http://packages.ros.org/ros/ubuntu/dists/ there is no "jammy" folder so this one is ros1. Go in /etc/apt/sources.list.d and delete the file that contains it. https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html says that ros2 should be using http://packages.ros.org/ros2/ubuntu – Daniel T Jan 31 '24 at 22:40
  • @user535733 Hmm really? There are so many ROS and APT questions here that I was just sorting through them to find the right duplicate target. Anyway, Thomas has already written an answer. I was going to use https://askubuntu.com/a/816505/1004020 , but the asker said they want ros2 not ros1 – Daniel T Jan 31 '24 at 22:51

1 Answers1

1

Your repository settings are configuired to use ROS version 1 repositories. Those are no longer up to date and do not support Ubuntu versions later than 20.04 - Jammy is 22.04.

You need to update the configuration for your repositories and use the ROS2 repositories - which use http://packages.ros.org/ros2/ubuntu instead of http://packages.ros.org/ros/ubuntu, and use ROS 2 instead of ROS 1.

You may want to refer to the ROS repository documentation here as well - https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html - to make sure you have the repository set up properly.

(I will expand to include those details once I'm at a computer, I'm on my tablet right now on my commute home from work)

Thomas Ward
  • 74,764