ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS installation issues on Ubuntu [closed]

asked 2023-05-25 00:34:32 -0500

Aries46 gravatar image

updated 2023-05-25 02:01:48 -0500

gvdhoorn gravatar image

Hello everyone,

I was in the process of following the installation steps from wiki.ros.org. When I get to step 1.3, Set up your keys, I receive the following error message

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

Then after that, I run sudo apt update, I then get another error message,

Err:20 http://packages.ros.org/ros/ubuntu jammy Release                                            
  404  Not Found [IP: 64.50.233.100 80]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [126 kB]           
Reading package lists... Done                                                                      
E: The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details."

I have done hours of research online but was unable to come to a resolution. I really would like to get this issue resolve so I can get ROS installed so I can begin programming robots but I need help unfortunately. I'm sure someone who use this chat has seen these error messages before and knows a clear work around.

Thank you, Darrell

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Aries46
close date 2023-05-28 18:08:58.796050

Comments

This reads like a duplicate of #q414948 (although that's about ROS 2, but it's basically the same issue).

Summarising: packages.ros.org is the ROS 1 package repository.

You're trying to install ROS 1 on Ubuntu Jammy, which is not supported. That's why you get that error.

gvdhoorn gravatar image gvdhoorn  ( 2023-05-25 02:02:39 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2023-05-25 08:09:38 -0500

Timothée gravatar image

Just as gvdhoorn said, you can't follow the official tutorial to have ROS on ubuntu jammy. If you are a beginner just trying ROS, I would absolutely recommend to go for ROS2, which have all the newest stuff and will be supported for longer (if you don't have a robot that specifically need ROS1).

However, if you are sure you want ROS1, you can build it from source and it can work on this version of ubuntu. It takes a bit of time but a friend of mine made a guide on how to do it, the link is just below. So you have two options :

  1. Install ROS2 easily with a debian package (the latest version just came out as I'm writing this, you can check the official Iron installation guide)
  2. Install ROS1 from source, following this guide should make things a lot easier (but it's still quite time consuming) : Guide to install ROS Noetic on ubuntu 22.04
edit flag offensive delete link more

Comments

Hello,

You stated I cannot follow the official tutorial to have ubuntu jammy. But if that is the case, why did you direct me to these instructions, "1.Install ROS2 easily with a debian package (the latest version just came out as I'm writing this, you can check the official Iron installation guide)" ?

The reason I ask this question is because these are the instructions I was following in the 1st place when I received the following error message, " Err:27 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 64.50.236.52 80] Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details How ...(more)

Aries46 gravatar image Aries46  ( 2023-05-25 14:13:15 -0500 )edit

The instructions you were following were the ROS 1 instructions.

@Timothée refers to the ROS 2 installation documentation.

gvdhoorn gravatar image gvdhoorn  ( 2023-05-25 14:17:14 -0500 )edit

That is incorrect. I am following ROS 2 instructions. To validate my point. When I click on the link from his message: Install ROS2 easily with a debian package (the latest version just came out as I'm writing this, you can check the official Iron installation guide).

It redirect me exactly to the ROS 2 installation instructions I was following. That said, I am still receiving the same error message: Err:27 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 64.50.236.52 80] Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

I receive this error message after I run sudo add-apt-repository universe.

Aries46 gravatar image Aries46  ( 2023-05-25 14:35:59 -0500 )edit

@Aries46 you haven't linked to the exact instrutions that you're following. But if you're following any instructions from wiki.ros.org they are about ROS 1. Furthermore the error messages that you're having are also related to ROS 1 repositories. So whether or not you're following ROS 2 instructions now. Your ongoing error is because you have added the ROS 1 sources incorrectly to your Ubuntu Jammy system. Any new attempt to install ROS 2 will not fix that. You need to back out the changes that you made when installing ROS 1 to get rid of this error message. Aka remove the ROS 1 repo which is trying to load Jammy.

tfoote gravatar image tfoote  ( 2023-05-25 15:02:44 -0500 )edit

Okay. That said, how do I remove ROS repo? I didn't link which instructions I was following as I figured I didn't need to. I would just explain the situation & show you the error message I was receiving & go on from there. But as I stated above the instructions I was following can be linked backed to the link you shared in your previous post, https://docs.ros.org/en/iron/Installa.... Those are the instructions I was following. But doesn't matter now. I just need to remove the following ROS 1 repo so I can install ROS 2 bro. Thanks for your assistance!

Aries46 gravatar image Aries46  ( 2023-05-25 15:19:36 -0500 )edit

Question Tools

Stats

Asked: 2023-05-25 00:34:32 -0500

Seen: 2,559 times

Last updated: May 25 '23