问题描述
由于密码错误,我错误地做了 sudo install gpg
。现在我无法通过intelliJ提交任何内容。
我收到以下错误:
I wrongly did sudo install gpg
due to passphrase error. Now I am not able to commit anything through intelliJ.I am getting 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
这里显示两个密钥10XXXXXXXXX3892和MyUpdates 。
有没有什么办法可以摆脱gpg的错误。我怎样才能卸载gpg?
Here two secret keys are shown "10XXXXXXXXX3892" and "MyUpdates".Is there any way i can get rid of gpg error. How can I uninstall gpg?
推荐答案
这看起来像是权限问题。您可能创建/安装了另一个用户,而不是运行IntelliJ的用户。假设您在普通用户帐户下运行IntelliJ(您通常应该这样做),请重新获得GnuPG主目录的所有权:
This reads like a permissions problem. You likely created/installed the keys as another user than IntelliJ is running under. Given you run IntelliJ under your normal user account (which you generally should be doing), take ownership of the GnuPG home directory again:
sudo chown -R $USER:$USER ~/.gnupg
然后确保您可以看到私钥:
Then make sure you can see the private keys:
gpg --list-secret-keys
这篇关于gpg未能签署数据。无法写入提交对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!