Robotics StackExchange | Archived questions

Ubuntu 22.04 ros2 humble installing error GPG, libc-bin

$ file /lib/systemd/systemd → ELF 64-bit LSB pie excutable, ARM aarch64, version 1 (SYSV) .... for GNU/Linux 3.7.0

to install ROS2 humble, while I'm following this : https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html

in there, trying second steps ↓

sudo apt install software-properties-common sudo add-apt-repository universe


then I confront error ↓

sudo apt update && sudo apt install curl sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg Get:1 http://packages.ros.org/ros2/ubuntu jammy InRelease [4,673 B] Err:1 http://packages.ros.org/ros2/ubuntu jammy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654 Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy InRelease Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease Reading package lists... Done

W: GPG error: http://packages.ros.org/ros2/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654 E: The repository 'http://packages.ros.org/ros2/ubuntu jammy InRelease' is not signed. 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. sudo: curl: command not found


except this there is another error in trying

$ sudo apt upgrade


dpkg: warning: files list file for package 'libc-bin' missing; assuming package has no files currently installed


frequent error message that somewhat try to dealing with is ↓

error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 139 Errors were encountered while processing: libc-bin


so there is two big problem, but the first problem will have to be solved first(GPG error) . if you want screenshot please watch this : ↓

https://github.com/ros2/ros2/issues/1352


HELP

Asked by rospass2 on 2022-12-03 02:56:13 UTC

Comments

Answers

I faced similar issue except sudo curl -sSL https://raw.githubusercontent.com/ros... -o /usr/share/keyrings/ros-archive-keyring.gpg was giving timeout. Followed below steps. Hope this helps !

1) Removed ros2.list from below location if it was already present.

/etc/apt/sources.list.d/ros2.list

2) Downloaded key via $ curl http://repo.ros2.org/repos.key | sudo apt-key add -. Reference post : https://answers.ros.org/question/379190/apt-update-signatures-were-invalid-f42ed6fbab17c654/

3) You will get a key added similar to /etc/apt/trusted.gpg But name could vary. You can find name of key by sudo apt-key list

4) copy the file /etc/apt/trusted.gpg to location /usr/share/keyrings and rename it to ros-archive-keyring.gpg

5) If you were following ros2 humble installation steps (https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html), you might have realized that below command is adding echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null following line deb [arch=arm64 signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu jammy main to the file /etc/apt/sources.list.d/ros2.list

6) Now, following the remaining steps in installation tutorial should help you to get humble installed.

Asked by anilbhatt1 on 2023-01-03 04:29:44 UTC

Comments

it worked for me thanks

Asked by raybeak on 2023-03-09 01:23:57 UTC

thank you sir !

Asked by rospass2 on 2023-03-10 01:25:57 UTC