From cac6b61b7697661c62014850aa5607c866c1ce50 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 22 Sep 2025 01:17:21 +0200 Subject: [PATCH] Linux/GPG: added some troubleshooting --- wiki/linux/gpg.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/wiki/linux/gpg.md b/wiki/linux/gpg.md index 84bf0de..76e1182 100644 --- a/wiki/linux/gpg.md +++ b/wiki/linux/gpg.md @@ -10,6 +10,8 @@ On most linux distributions GPG can be installed with the `gnupg` package. ## Usage +This section addresses the usage of the Open GPG. + ### Generating a Key Pair A fast way to generate a key pair is by running the following command. @@ -100,3 +102,33 @@ Replace `` with the identifier of the key that should be received and truste gpg --recv-key gpg --lsign ``` + +## Troubleshooting + +This section will focus on errors and the fixing of errors of GPG. + +### `keyblock resource '.../pubring.kbx': No such file or directory` + +This error mostly occurs when updating packages via various +[package managers](/wiki/linux/package_manager.md). +It can easily be fixed by running the following command. +Which will (re-)generate the needed files and directories for GPG. + +```sh +dirmngr +``` + +### `gpg: keyserver receive failed: No data` + +This error mostly occurs when updating packages via various +[package managers](/wiki/linux/package_manager.md). +It prevents specific packages from installing after the PGP key is not imported correctly. +This can be fixed by importing the PGP key manually by the following command. +In this command `` is the id for the PGP key given by the package manager before the error +occurs. +`hkp://pgp.rediris.es` is a key server that can be used but other possibilities are available and +can and should be used depending on the location. + +```sh +gpg --keyserver hkp://pgp.rediris.es --recv-key +```