Hi, so I recently updated and now whenever I try to update or install anything from the AUR I get the following error while importing keys.
:: PGP keys need importing:
-> 1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A, required by: sublime-merge
:: Import? [Y/n]
:: Importing keys with gpg...
gpg: keydb_get_keyblock failed: Value not found
gpg: error writing keyring '[keyboxd]': SQL library used incorrectly
gpg: error reading '[stream]': SQL library used incorrectly
gpg: Total number processed: 0
-> problem importing keys
Note : there is something wrong with GPG servers in last weeks, idk for sure.
Installing:
pamac install sublime-merge
Failed to read AUR data from /var/lib/pacman/sync/packages-meta-ext-v1.json.gz : Error opening file /var/lib/pacman/sync/packages-meta-ext-v1.json.gz: No such file or directory
Error: target not found: sublime-merge
Dammit. I remember in the past an issue with this - not sure if it’s still relevant and lazy to fix…
Even when trying to manually import the key I still get the same error.
$ curl -SsL https://download.sublimetext.com/sublimehq-pub.gpg | gpg --import -
gpg: keydb_get_keyblock failed: Value not found
gpg: error writing keyring '[keyboxd]': SQL library used incorrectly
gpg: error reading '-': SQL library used incorrectly
gpg: import from '-' failed: SQL library used incorrectly
gpg: Total number processed: 0
curl -SsL https://download.sublimetext.com/sublimehq-pub.gpg | gpg --import -
gpg: key ADAE6AD28A8F901A: "Sublime HQ Pty Ltd <support@sublimetext.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
Something is messed up with your Arch Keyring, I’m not quite sure what to do here…
systemctl --user status keyboxd
â—Ź keyboxd.service - GnuPG public key management service
Loaded: loaded (/usr/lib/systemd/user/keyboxd.service; static)
Active: active (running) since Sun 2025-01-26 17:53:39 +07; 1 day 21h ago
Invocation: b531374658584171872bb4fd9da5a2f6
TriggeredBy: â—Ź keyboxd.socket
Main PID: 2605 (keyboxd)
Tasks: 1 (limit: 18272)
Memory: 856K (peak: 2.2M, swap: 264K, swap peak: 424K)
CPU: 927ms
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/keyboxd.service
└─2605 /usr/lib/gnupg/keyboxd --supervised
Jan 26 17:53:39 SteelLegend systemd[1770]: Started GnuPG public key management service.
Jan 26 17:53:39 SteelLegend keyboxd[2605]: keyboxd (GnuPG) 2.4.7 starting in supervised mode.
Jan 26 17:53:39 SteelLegend keyboxd[2605]: database version: 1
Jan 26 17:53:39 SteelLegend keyboxd[2605]: database created: 2024-03-23 14:13:31
Jan 26 17:53:39 SteelLegend keyboxd[2605]: database '/home/ben/.gnupg/public-keys.d/pubring.db' created
Maybe recreate keyring?
mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg2
From ArchWiki:
Remove or reset all the keys installed in your system by removing the /etc/pacman.d/gnupg directory (as root) and by rerunning pacman-key --init followed by pacman-key --populate to re-add the default keys.
This involves the user’s personal keyring, not the pacman keyring.
If the keyring has become corrupted, perhaps they can restore it from a backup, or maybe check if the automatically made backup (~/.gnupg/pubring.kbx~) is usable.