Ros Instalation Error - Unable to locate package ros-galactic-desktop
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 ...