gpg invalid argument

Hello,

When I use gpg.exe and i generate a new key, it tells me:

cannot rename pubring.kbx to pubring.kb_ invalid argument.

the user profile under windows has the rights for pubring.kbx so I don’t understand.

Thank you for your help.

msg dos:

gpg: cannot rename “C:\Users\name\AppData\Roaming\gnupg\pubring.kbx” to “C:\Users\name\AppData\Roaming\gnupg\ pubring.kb_”: Invalid argument
gpg: error writing public keyring ‘C:\Users\name\AppData\Roaming\gnupg\pubring.kbx’: Invalid argument
Failed to generate key: Invalid argument

Hello,

can you please provide us additional information (version of Gpg4win, which Windows)?

Greetings,
Christoph

hello,

windows 10 pro vers 21H2 Build 1904.2130
Gpg4win-4.0.4

thx

Maybe you could try the same command with the option “-v”. Then you probably will get more information that can help to find the cause.