0

I get the error gpg failed to sign the data even though I've followed this article and tried the steps from this stackoverflow answer but to no avail. Setting git config --global gpg.program gpg2 yields the error Cannot run gpg2: No such file or directory even though I have the package installed.

I am using Linux and vscode through flatpak. Any advice is greatly appreciated!

torek
  • 448,244
  • 59
  • 642
  • 775
  • 1
    AFAIK Flatpak runs programs in separate containers. You have to allow it to access `gpg2` and perhaps other programs outside of VSCode container. – phd Aug 09 '21 at 16:18
  • Thank you, @phd !! You should post this as an answer, because this was the issue. –  Aug 09 '21 at 17:24
  • I know very little about Flatpak. It would be better if **you** write the answer along with the commands to configure the container. I'll learn from it. – phd Aug 09 '21 at 17:34

1 Answers1

0

It is possible to set read-only permissions to flatpak for it to read items from /usr/bin/ using flatpak override --filesystem=host:ro. But, in order not to make life hard for myself, I chose to install vscode from the official repos - which solved my issue without any hacky solutions.