Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPG not working in docker image #90

Closed
nalsai opened this issue Feb 28, 2023 · 0 comments · Fixed by #91
Closed

GPG not working in docker image #90

nalsai opened this issue Feb 28, 2023 · 0 comments · Fixed by #91

Comments

@nalsai
Copy link
Contributor

nalsai commented Feb 28, 2023

The official dockerfile uses ubuntu:22.04 as a base, which only has the command gpg and not gpg2.
load_gpg_key uses the gpg2 command and therefore can't load a gpg key with that setup.
You get a generic "Failed to read config file" error message once you try to add a build-gpg-key (weirdly gpg-key on repos doesn't throw an error).

I symlinked it to fix the issue for me (ln -s /usr/bin/gpg /usr/bin/gpg2), but it should get fixed in the dockerfile.

Side note:
The ubuntu image uses LC_ALL=C, which can make gpg throw a "A locale function failed" error if the key includes non-ASCII characters (for example in the uid name). Exporting keys still works, so it's not a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant