You are not logged in.

#1 2025-12-20 18:24:16

nearing_migration
Member
Registered: 2023-04-16
Posts: 15

Unable to import any PGP keys

I am currently attempting to use the AUR helper, yay, and it seems that something's wrong with gpg.

:: Import? [Y/n] 
:: Importing keys with gpg...
gpg: key D5A1D4F266DE8DDF: 3 duplicate signatures removed
gpg: Note: database_open 134217901 waiting for lock (held by 1567) ...
gpg: Note: database_open 134217901 waiting for lock (held by 1567) ...
gpg: Note: database_open 134217901 waiting for lock (held by 1567) ...
gpg: Note: database_open 134217901 waiting for lock (held by 1567) ...
gpg: Note: database_open 134217901 waiting for lock (held by 1567) ...
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

I had issues with my internet for a week and I couldn't update my system, but I had no problem with gpg prior to this. The aforementioned connection issues were not software related.

Offline

#2 2025-12-20 19:18:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,184
Website

Re: Unable to import any PGP keys

Please post the complete command and output.

https://bbs.archlinux.org/viewtopic.php?id=57855


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2025-12-20 21:27:32

loqs
Member
Registered: 2014-03-06
Posts: 18,725

Re: Unable to import any PGP keys

Also the output of `systemctl --user status keyboxd` please.

Offline

#4 2025-12-21 04:02:34

nearing_migration
Member
Registered: 2023-04-16
Posts: 15

Re: Unable to import any PGP keys

Strangely enough, I can fetch the keys now. I'll fetch the logs anyway.

WorMzy wrote:

Please post the complete command and output.

https://bbs.archlinux.org/viewtopic.php?id=57855

The rest of the command was a completely normal yay transanction which is why I didn't include it. I was using yay -Syyuu to upgrade my AUR packages.

Dec 20 20:10:01 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:02 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:04 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:05 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:08 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:10 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:10 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:10 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:11 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:12 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:14 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:15 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:18 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:20 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:20 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:20 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:21 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:22 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:24 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:25 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:28 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:30 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:30 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:30 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:31 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:32 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:34 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:35 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:38 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:40 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:40 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:40 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:41 gentoo systemd[1134]: Started GnuPG network certificate management daemon.
Dec 20 20:10:41 gentoo dirmngr[20606]: permanently loaded certificates: 144
Dec 20 20:10:41 gentoo dirmngr[20606]:     runtime cached certificates: 0
Dec 20 20:10:41 gentoo dirmngr[20606]:            trusted certificates: 144 (144,0,0,0)
Dec 20 20:10:43 gentoo dirmngr[20606]: resolve_dns_addr for 'keyserver.ubuntu.com': '[2620:2d:4000:1007::d43]'
Dec 20 20:10:14 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:15 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:18 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:20 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:20 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:20 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:21 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:22 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:24 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:25 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:28 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:30 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:30 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:30 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:31 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:32 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:34 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:35 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:38 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:40 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:40 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:40 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:41 gentoo systemd[1134]: Started GnuPG network certificate management daemon.
Dec 20 20:10:41 gentoo dirmngr[20606]: permanently loaded certificates: 144
Dec 20 20:10:41 gentoo dirmngr[20606]:     runtime cached certificates: 0
Dec 20 20:10:41 gentoo dirmngr[20606]:            trusted certificates: 144 (144,0,0,0)
Dec 20 20:10:43 gentoo dirmngr[20606]: resolve_dns_addr for 'keyserver.ubuntu.com': '[2620:2d:4000:1007::d43]'
Dec 20 20:10:43 gentoo dirmngr[20606]: resolve_dns_addr for 'keyserver.ubuntu.com': '[2620:2d:4000:1007::70c]'
Dec 20 20:10:43 gentoo dirmngr[20606]: resolve_dns_addr for 'keyserver.ubuntu.com': '185.125.188.27'
Dec 20 20:10:43 gentoo dirmngr[20606]: resolve_dns_addr for 'keyserver.ubuntu.com': '185.125.188.26'
Dec 20 20:10:43 gentoo dirmngr[20606]: number of system provided CAs: 178
Dec 20 20:10:47 gentoo dirmngr[20606]: error accessing 'https://185.125.188.26:443/pks/lookup?op=get&options=mr&search=0xEF6E286DDA85EA2A4BA7DE684E2C6E8793298290': http status 404
Dec 20 20:10:48 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:49 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:51 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:51 gentoo wireplumber[1148]: wp-event-dispatcher: <WpAsyncEventHook:0x5652622de220> failed: <WpSiStandardLink:0x56526246cc00> link failed: some node was destroyed before the link was created
Dec 20 20:10:51 gentoo wireplumber[1148]: wp-event-dispatcher: <WpAsyncEventHook:0x5652622de220> failed: <WpSiStandardLink:0x5652625615f0> link failed: some node was destroyed before the link was created
Dec 20 20:10:51 gentoo wireplumber[1148]: wp-event-dispatcher: <WpAsyncEventHook:0x5652622de220> failed: <WpSiStandardLink:0x5652622761c0> link failed: some node was destroyed before the link was created
Dec 20 20:10:52 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:55 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:10:57 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:57 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:10:57 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:10:57 gentoo keyboxd[1814]: error preparing SQL statement: bad parameter or other API misuse

Seems like a server issue to me.

loqs wrote:

Also the output of `systemctl --user status keyboxd` please.

● keyboxd.service - GnuPG public key management service
     Loaded: loaded (/usr/lib/systemd/user/keyboxd.service; static)
     Active: active (running) since Sat 2025-12-20 20:02:55 EET; 9h ago
 Invocation: 0726f3d82eed43b2b9bba349aa6baf1b
TriggeredBy: ● keyboxd.socket
       Docs: man:keyboxd(8)
   Main PID: 1814 (keyboxd)
      Tasks: 1 (limit: 18877)
     Memory: 1.4M (peak: 2.5M)
        CPU: 656ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/keyboxd.service
             └─1814 /usr/lib/gnupg/keyboxd --supervised

Dec 20 20:18:31 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:18:33 gentoo keyboxd[1814]: waiting for lock (held by 1567) ...
Dec 20 20:18:35 gentoo keyboxd[1814]: can't lock '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:18:35 gentoo keyboxd[1814]: error creating database '/home/install/.gnupg/public-keys.d/pubring.db': Connection timed out
Dec 20 20:18:35 gentoo keyboxd[1814]: error during the initial search reset: Connection timed out
Dec 20 20:18:35 gentoo keyboxd[1814]: error preparing SQL statement: bad parameter or other API misuse
Dec 21 05:13:00 gentoo keyboxd[1814]: removing stale lockfile (created by 1567)
Dec 21 05:13:00 gentoo keyboxd[1814]: database version: 1
Dec 21 05:13:00 gentoo keyboxd[1814]: database created: 2025-03-04 08:55:53
Dec 21 05:13:00 gentoo keyboxd[1814]: database '/home/install/.gnupg/public-keys.d/pubring.db' created

Offline

#5 2025-12-21 04:15:03

system72
Member
Registered: 2025-11-22
Posts: 349
Website

Re: Unable to import any PGP keys

gentoo is not arch linux

Offline

#6 2025-12-21 09:33:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,549

Re: Unable to import any PGP keys

Strangely enough, I can fetch the keys now.

waiting for lock (held by 1567)

Can you track what PID 1567 is/was? Otherwise, if you run into this again check what process (the PID will be different) holds the lock.

Edit: Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

@system72, I also suspect that yay doesn't support gentoo wink

Last edited by seth (2025-12-21 09:33:59)

Offline

Board footer

Powered by FluxBB