No Release File Found for ROS iron install on ubuntu jammy
I am new to ROS and I am trying to install ROS iron on my virtual machine but I am having trouble installing it. I am following the directions here (http://docs.ros.org/en/iron/Installation/Ubuntu-Install-Debians.html). But when I try to enable required repositories i keep getting this error.
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 am using Ubuntu 22.04.2 LTS, codename: jammy which should be supported.
Any help would be greatly appreciated.
Asked by epps.julian@outlook.com on 2023-06-11 12:25:18 UTC
Answers
The issue appears to be the repository you're trying to use.
The error message mentions:
E: The repository 'http://packages.ros.org/ros/ubuntu [..]
while the install instructions you link have:
http://packages.ros.org/ros2/ubuntu
note the 2
there in the url at the end of ros2
.
Without the 2
, you're trying to use the ROS 1 package repository. That doesn't support 22.04
, which is why you get that error.
You could try editing the /etc/apt/sources.list.d/ros2.list
file and add the missing 2
(then run sudo apt update
). If that doesn't work either, I'd suggest removing /etc/apt/sources.list.d/ros2.list
and following the install instructions again.
Asked by gvdhoorn on 2023-06-12 01:49:15 UTC
Comments
After posting an answer, I realised this appears to be a duplicate of at least #q414948 (which I also answered, with a similar answer). We'll keep this open though, as I'd like confirmation by the OP the suggested approach solves the problem (#q414948 was never marked as answered).
Asked by gvdhoorn on 2023-06-12 01:51:35 UTC