[pkg-gnupg-maint] Bug#1058572: gnupg2.4: fail to initialize homedir and generate key due to keyboxd

YunQiang Su wzssyqa at gmail.com
Wed Dec 13 03:35:18 GMT 2023


Package: src:gnupg2
Version: 2.4.3-2

> gpg --quick-generate-key "A User <au at example.com>" rsa2048                                                                                                                                              ~
gpg: directory '/home/XXXX/.gnupg' created
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: error writing public keyring '[keyboxd]': Attempt to write a
readonly SQL database
Key generation failed: Attempt to write a readonly SQL database

The problem is due to when create gnupg 2.4+ will add a "common.conf"
in new created ~/.gnupg directory, with "use-keyboxd", while keyboxed
is not enabled on Debian yet.
https://github.com/gpg/gnupg/blob/master/README

-- 
YunQiang Su



More information about the pkg-gnupg-maint mailing list