Gpg failed to sign data. Failed to write commit object

I mistakenly did it sudo install gpgbecause of a passphrase error. Now I can not do anything through intelliJ. I get below error:

gpg: skipped "10XXXXXXXXX3892": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object 
gpg: skipped "MyUpdates": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object

Here, two secret keys are shown: "10XXXXXXXXX3892" and "MyUpdates". Is there any way to get rid of gpg error. How to remove gpg?

+4
source share
1 answer

. , / , IntelliJ. , IntelliJ ( ), GnuPG:

sudo chown -R $USER:$USER ~/.gnupg

, :

gpg --list-secret-keys
+3

Source: https://habr.com/ru/post/1650253/


All Articles