24
March
2020
16:19

Fixing Sparky Linux error "The following signatures cannot be verified because the public key is not available: NO_PUBKEY"

24 March 2020 16:19

As you know, most Debian-like distributions are updated with the following two commands: sudo apt-get update && sudo apt-get upgrade. The Sparky Linux distribution is no exception to this rule. However, during a normal system update, the apt-get update command may produce an unexpected error:

"https://repo.sparkylinux.org core InRelease The following signatures cannot be verified because the public key is not available: NO_PUBKEY ..."

The reason for the NO_PUBKEY error is a change in the GPG key that signs the files in the repository. This same public key is used on the client computer to verify package signatures before installing them.

Solution

consists of downloading and installing a new public key with which the repository packages are signed.

curl -fsSL https://repo.sparkylinux.org/sparky.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/sparky.gpg

Once the key has been added, you can run the usual commands to update distribution package versions.
Now they will run without errors:

sudo apt-get update
sudo apt-get upgrade

Last update: 09/01/2025



Related publications