gum icon indicating copy to clipboard operation
gum copied to clipboard

GPG Public Key Signature Failure Causes Gum Install To Fail

Open ideonrandy opened this issue 1 year ago • 3 comments

Describe the bug On particular Ubuntu machines, the installation steps to install gum through the apt package manager do not succeed due to a GPG error: W: GPG error: https://repo.charm.sh/apt InRelease: The following signatures couldn't be verified because the public key is not available.

To Reproduce Steps to reproduce the behavior:

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

IOT GATEWAY 8:

  • Linux iot-gate-imx8 5.10.72-iot-gate-imx8-3.1+gaa91dea99095 #1 SMP PREEMPT Thu Jul 21 10:04:44 UTC 2022 aarch64 GNU/Linux
  • [Browser [e.g. chrome, safari] N/A
  • Version [e.g. 22]](https://www.compulab.com/products/iot-gateways/iot-gate-imx8-industrial-arm-iot-gateway/)

Additional context I had run the commands as both a regular and root user and the issue persisted. On that same machine, I created a base ubuntu container and ran the following steps to try and reproduce the problem but in this case the install succeeded without issue:

apt-get update
apt-get install -y sudo curl gpg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum

ideonrandy avatar Jun 28 '23 23:06 ideonrandy

Here is a simple bypass - replace:

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum

With:

echo 'deb [trusted=yes] https://repo.charm.sh/apt/ /' | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum
sudo rm /etc/apt/sources.list.d/charm.list && sudo apt update

It does not solve the underlying key issue, but it allows for Gum to be installed by bypassing the key and then removes the package source so that the warning doesn't constantly show up afterwards

ideonrandy avatar Jun 29 '23 00:06 ideonrandy

Hi @ideonrandy, make sure you have gnupg and curl installed

aymanbagabas avatar Jun 29 '23 14:06 aymanbagabas

I installed ca-certificates and finally could install gum.

sudo apt install ca-certificates

hanbyul-kim avatar Jul 04 '23 06:07 hanbyul-kim