question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed signing (gpg2) using Flatpak

See original GitHub issue

Describe the bug

error: cannot run gpg2: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object

Version & OS

Version 2.9.0-linux4 (x64) flatpak

Fedora 29

Steps to reproduce the behavior

  1. Setup git config to sign commits
  2. Open a repo in GitHub Desktop
  3. Make some changes
  4. Commit

Expected behavior

A signed commit should be created

Actual behavior

Commit fails, as the flatpak version seems to be lacking permission to gpg2 (maybe just gpg on some systems).

Screenshots

Logs

Attach your logs by opening the Help menu and selecting Show Logs..., if applicable.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Lunarequestcommented, Jul 22, 2021

We don’t ship gpg in the flatpak. I’ll add it to the build.

0reactions
noClapscommented, Jun 29, 2022

How would I do that? I’m sorry, I’m not very good at Linux CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot GPG sign a commit with the flatpak version of Intellij
so I tried adding the gpg-no-tty.sh script as described but still no success. The prompt for the GPG passphrase appears in an OS...
Read more >
GPG failed to sign the data · Issue #21 · flathub/com.vscodium ...
Issue Seems Vscodium has issues signing git commits with local gpg keys. ... -S error: gpg failed to sign the data fatal: failed...
Read more >
1943288 – Flatpak applications don't start gpg-agent when ...
Open a flatpak application that can use PGP Signing with gpg 3. Try to sign a commit, or an e-mail, etc 4. It...
Read more >
GPG pin-entry broken after reinstall - Manjaro Linux Forum
When I try committing with Git, it returns: error: gpg failed to sign the data fatal: failed to write commit object.
Read more >
Se encontraron firmas GPG, pero ninguna está en un llavero ...
Flatpak marca error - Se encontraron firmas GPG, pero ninguna está en un ... Signature made mar 14 ene 2020 16:07:58 CST using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found