dnf fails to work on Fedora, which is run in container through LXD because of
gpgme.
dnf install -y git
...
Traceback (most recent call last):
File "/usr/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 174, in
user_main
errcode = main(args) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main return _main(base, args) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 120, in _main ret = resolving(cli, base) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 149, in
resolving
base.do_transaction(display=displays) File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 220, in
do_transaction
self.gpgsigcheck(downloadpkgs) File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 258, in
gpgsigcheck
self._get_key_for_package(po, fn) File "/usr/lib/python3.5/site-packages/dnf/base.py", line 1842, in
_get_key_for_package
keys = dnf.crypto.retrieve(keyurl, repo) File "/usr/lib/python3.5/site-packages/dnf/crypto.py", line 124, in retrieve keyinfos = rawkey2infos(handle) File "/usr/lib/python3.5/site-packages/dnf/crypto.py", line 117, in
rawkey2infos
info.raw_key = buf.getvalue() File "/usr/lib64/python3.5/contextlib.py", line 77, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python3.5/site-packages/dnf/crypto.py", line 95, in pubring_dir yield File "/usr/lib/python3.5/site-packages/dnf/crypto.py", line 107, in
rawkey2infos
ctx.import_(key_fo)
gpgme.GpgmeError: (7, 32870, 'Inappropriate ioctl for device')