GPG is waiting for a lock held by a process that does not exist
Evan Aad
oddeveneven at gmail.com
Mon Sep 29 09:01:22 CEST 2025
Hello,
Working on a PC running Windows 11 Pro, I'm trying to verify a the
signature of a file by running the following command in a GitBash
console:
gpg --verify THE_NAME_OF_THE_SIGNATURE_FILE
In response, the following message appears:
gpg: Note: database_open 134217901 waiting for lock (held by 1819) ...
However, when I then run:
ps
The table that is shown contains no row whose PID value is 1819.
Restarting the computer does not help.
Google suggests that deleting
C:\Users\<YourUsername>\AppData\Roaming\gnupg\pubring.db.lock might
clear the error, however I don't have a gnupg directory under
directory \Users\<YourUsername>\AppData\Roaming. I do have a .gnupg
directory under C:\Users\<YourUsername>, but there is no file whose
name include the string lock in this directory.
How can I resolve this problem?
More information about the Gnupg-users
mailing list