Installation of "kgeotag" AUR fails due to missing key

I tried to install “kgeotag” from AUR, but this fails as the PGP key is missing. I did read through many similar issues and (I think) I tried everything that I could think of, e.g. things like

sudo pacman-key --populate; sudo pacman-key --refresh
sudo pacman-key --recv-keys A53563BC888E6CE5215535992523842AF9681DDF
sudo gpg --keyserver pgp.mit.edu --recv-key -v A53563BC888E6CE5215535992523842AF9681DDF

all with different key servers and so on.

I hope this is not too dumb of a question but I’m really stuck now after a few hours of reading and trying…

You always should post the origin error message. :wink:

No problems installing it on my PC (using pamac build kgeotag in a terminal):

pamac build kgeotag
Preparing...
Checking kgeotag dependencies...
Resolving dependencies...
Checking inter-conflicts...

To install (1):
  marble-common  23.08.4-1  (Required By: kgeotag)  extra  47.7 MB
To build (1):
  kgeotag        1.5.0-1                            AUR

Total download size: 47.7 MB
Total installed size: 77.4 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning kgeotag build files...
Generating kgeotag information...
The PGP key A53563BC888E6CE5215535992523842AF9681DDF is needed to verify kgeotag source files.
Trust Tobias Leupold <tobias.leupold@gmx.de> and import the PGP key ? [y/N] y
gpg: key 2523842AF9681DDF: public key "Tobias Leupold <tobias.leupold@gmx.de>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Hmm - I have the following (if that is telling someone something)…

sudo pamac install kgeotag
Warnung: kgeotag ist nur im AUR verfügbar
Vorbereitung...
Klone kgeotag Build-Dateien...
Running as unit: run-u8102.service
Schwerwiegend: Kein Git-Repository (oder irgendein Elternverzeichnis bis zum Einhängepunkt /var/cache/private)
Stoppe bei Dateisystemgrenze (GIT_DISCOVERY_ACROSS_FILESYSTEM nicht gesetzt).
Finished with result: exit-code
Main processes terminated with: code=exited/status=128
Service runtime: 7ms
CPU time consumed: 7ms
Memory peak: 608.0K
Memory swap peak: 0B
Running as unit: run-u8103.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 9ms
CPU time consumed: 8ms
Memory peak: 516.0K
Memory swap peak: 0B
Running as unit: run-u8104.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 749ms
CPU time consumed: 65ms
Memory peak: 864.0K
Memory swap peak: 0B
Generiere Informationen zu kgeotag  ...
Running as unit: run-u8105.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 1.275s
CPU time consumed: 1.419s
Memory peak: 1.3M
Memory swap peak: 0B
Überprüfe kgeotag Abhängigkeiten...
Abhängigkeiten werden aufgelöst...
Interne Konflikte werden überprüft...

Zu erstellen (1):
  kgeotag  1.5.0-1    AUR


Build-Dateien bearbeiten : [e] 
Transaktion durchführen ? [e/j/N] j

Fehler: Schlüssel A53563BC888E6CE5215535992523842AF9681DDF konnte nicht importiert werden

Erstelle kgeotag...
Running as unit: run-u8106.service
Press ^] three times within 1s to disconnect TTY.
==> Erstelle Paket: kgeotag 1.5.0-1 (So 11 Feb 2024 12:11:51 CET)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> Lade kgeotag-1.5.0.tar.xz herunter...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  389k  100  389k    0     0   404k      0 --:--:-- --:--:-- --:--:-- 1409k
  -> Lade kgeotag-1.5.0.tar.xz.sig herunter...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   833  100   833    0     0   9017      0 --:--:-- --:--:-- --:--:--  9153
==> Überprüfe source Dateien mit sha256sums...
    kgeotag-1.5.0.tar.xz ... Erfolg
    kgeotag-1.5.0.tar.xz.sig ... Übersprungen
==> Überprüfe Signaturen der Quell-Dateien mit gpg...
    kgeotag-1.5.0.tar.xz ... cat: Schreibfehler: Datenübergabe unterbrochen (broken pipe)
FEHLGESCHLAGEN
==> FEHLER: Eine oder mehrere PGP-Signaturen konnten nicht überprüft werden!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 2.368s
CPU time consumed: 1.504s
Memory peak: 1.1M
Memory swap peak: 0B
Fehler: Fehler beim Erstellen von kgeotag

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

First: Do NOT use sudo for Pamac. You will be asked to enter your password when required.

Second: The command is pamac build kgeotag, NOT pamac install kgeotag.

I finally got it - by standard I do have an adblocker enabled (kind of special pi-hole for the whole local network). It looks like some (or all) of the keyservers are being blocked (obviously by mistake; don’t ask me why).

Turning off the adblocker temporarily at least resolved the issue :grinning:
Many, many thanks for all your help !!!

You have to add keys with gpg directly. Pacman doesn’t build AUR packages.

See: