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

Ros Instalation Error - Unable to locate package ros-galactic-desktop

asked 2022-05-01 07:18:59 -0600

Orpiczy gravatar image

updated 2022-05-01 10:24:36 -0600

gvdhoorn gravatar image

System: Ubunut 22.04 LTS, distribution Ros2 Galactic

Issue:During the initial installation process ( I follow this tutorial https://docs.ros.org/en/galactic/Inst...), system fails to locate package ros-galactic-desktop after command "sudo apt install ros-galactic-desktop".

cmd:

apt update
apt install -y locales

locale-gen en_US en_US.UTF-8
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
apt update 
apt install -y curl gnupg2 lsb-release
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
apt update
apt install -y ros-galactic-desktop
apt install -y python3-colcon-common-extensions

result:

Hit:1 http://pl.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://pl.archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]                       
Hit:3 http://pl.archive.ubuntu.com/ubuntu jammy-backports InRelease                                        
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                                           
Hit:5 https://packages.microsoft.com/repos/code stable InRelease                                           
Hit:6 http://packages.ros.org/ros2/ubuntu jammy InRelease
Fetched 109 kB in 1s (163 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
locales is already the newest version (2.35-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Generating locales (this might take a while)...
  en_US.ISO-8859-1... done
  en_US.UTF-8... done
Generation complete.
Hit:1 http://pl.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://packages.ros.org/ros2/ubuntu jammy InRelease
Get:4 http://pl.archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]   
Hit:5 http://pl.archive.ubuntu.com/ubuntu jammy-backports InRelease                     
Hit:6 https://packages.microsoft.com/repos/code stable InRelease
Fetched 109 kB in 1s (87.0 kB/s)              
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
gnupg2 is already the newest version (2.2.27-3ubuntu2).
curl is already the newest version (7.81.0-1ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://pl.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://pl.archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]                                 
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                           
Hit:4 http://pl.archive.ubuntu.com/ubuntu jammy-backports InRelease                                        
Hit:5 https://packages.microsoft.com/repos/code stable InRelease                                           
Hit:6 http://packages.ros.org/ros2/ubuntu jammy InRelease                    
Fetched 109 kB in 1s (159 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-05-01 10:28:11 -0600

gvdhoorn gravatar image

updated 2022-05-01 10:29:55 -0600

System: Ubunut 22.04 LTS, distribution Ros2 Galactic

As you can see in REP-2000: ROS 2 Releases and Target Platforms, specifically the Galactic Geochelone (May 2021 - November 2022) section, Ubuntu 22.04 is not listed as a supported version of Ubuntu for ROS 2 Galactic.

The only Ubuntu distribution which gets binary packages created for it is Ubuntu Focal (20.04):

image description

It's also clearly stated on the installation page you link:

image description

apt is completely correct when it tells you it cannot find ros-galactic-desktop.

edit flag offensive delete link more

Comments

thank you : )

Orpiczy gravatar image Orpiczy  ( 2022-06-02 14:55:26 -0600 )edit

Question Tools

Stats

Asked: 2022-05-01 07:18:59 -0600

Seen: 4,311 times

Last updated: May 01 '22