Search code examples
git-configgitkraken

Unable to update git config: failed to lock file [home]/snap/gitkraken/137/.gitconfig.lock' for writing:


So I installed the latest version of Gitkraken(v5.02) and wanted to try the new gpg key feature. Firstly, the documentation says that if you have an existing key, gitkraken will automatically use it, but mine doesn't.

Also, when in the gpg settings menu, I chose the sign commits by default option,
enter image description here

I get the following error:
enter image description here

Though I tried deleting the .gitconfig.lock file and even reinstalled gitkraken, I can't get it to work.

Am I missing something obvious?

EDIT: I installed gitkraken using snap:

sudo snap install gitkraken

Solution

  • I asked this question on the gitkraken help slack channel. They suggested using the .deb installer instead of snap. It worked exactly as expected.

    The .deb installer fixes both the auto-detection of gpg keys problem as well as the "failed to lock file problem".

    In the same chat, someone else responded that snap probably was n't working properly due to the issue of sandboxing.

    The issue with snap may be solved in more recent updates from gitkraken.