Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639870 - app-crypt/gkeys-gen-0.2: IOError: [Errno 2] No such file or directory: '/usr/share/gnupg/gpg-conf.skel'
Summary: app-crypt/gkeys-gen-0.2: IOError: [Errno 2] No such file or directory: '/usr/...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: gentoo-keys (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo-keys project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 02:00 UTC by Nick Sarnie
Modified: 2018-09-13 16:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sarnie gentoo-dev 2017-12-05 02:00:14 UTC
Hi all,

I am trying to use gkeys gen-key to create a Gentoo-compliant GPG key following this tutorial:

https://wiki.gentoo.org/wiki/Project:Gentoo-keys/Generating_GLEP_63_based_OpenPGP_keys

I receive the below error using app-crypt/gnupg-2.2.3:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/gkeys-gen", line 50, in <module>
    success = main()
  File "/usr/lib64/python2.7/site-packages/gkeygen/cli.py", line 59, in __call__
    return self.run(args)
  File "/usr/lib64/python2.7/site-packages/gkeys/base.py", line 346, in run
    success, results = func(args)
  File "/usr/lib64/python2.7/site-packages/gkeygen/actions.py", line 163, in genkey
    shutil.copy('/usr/share/gnupg/gpg-conf.skel', newgpgconfpath)
  File "/usr/lib64/python2.7/shutil.py", line 133, in copy
    copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 96, in copyfile
    with open(src, 'rb') as fsrc:                                                                                                                                                            
IOError: [Errno 2] No such file or directory: '/usr/share/gnupg/gpg-conf.skel'                                                                                                               


It looks like this file was removed after gnupg 2.1

https://lists.gnupg.org/pipermail/gnupg-commits/2017-April/013663.html


Thanks,
Sarnex
Comment 1 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-12-05 08:34:00 UTC
gkeys-gen should just be removed from the tree altogether, just use the gnupg CLI to generate key material.
Comment 2 Nick Sarnie gentoo-dev 2017-12-05 13:30:05 UTC
(In reply to Kristian Fiskerstrand from comment #1)
> gkeys-gen should just be removed from the tree altogether, just use the
> gnupg CLI to generate key material.

I have no problem with this, but please create a wiki page that has a step-by-step example on creating GPG keys compatible with GLEP 63. I do not have much experience with GPG and I had to have someone walk me through it.

Thanks,
Sarenx
Comment 3 Steve Arnold archtester gentoo-dev 2018-04-05 19:21:49 UTC
I would agree with that, especially when the docs and the tools are all stale and/or broken.  This is not something I do every day, and I'd really prefer not wasting time or having to "wing" my way through creating the right key.  The current state of things seems woefully inadequate.
Comment 4 Fabian Groffen gentoo-dev 2018-07-02 19:15:43 UTC
After email from dolsen, I went to the wiki, to generate a new key, had to unmask a few dependencies, then hit this problem.

Please update the wiki.

https://wiki.gentoo.org/wiki/Project:Gentoo-keys/Generating_GLEP_63_based_OpenPGP_keys
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-13 16:24:03 UTC
Package removed per last-rites.