Bug 1227689 - dnf: plenty of tracebacks in chroot environment --nogpgcheck
Summary: dnf: plenty of tracebacks in chroot environment --nogpgcheck
Keywords:
Status: CLOSED DUPLICATE of bug 1224908
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-03 10:24 UTC by Ali Akcaagac
Modified: 2015-06-03 13:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-03 13:52:54 UTC
Type: Bug


Attachments (Terms of Use)

Description Ali Akcaagac 2015-06-03 10:24:55 UTC
[root@localhost /]# dnf install fedora-repos-rawhide
RPM Fusion for Fedora 22 - Free - Updates       5.7 kB/s | 395  B     00:00    
RPM Fusion for Fedora 22 - Nonfree - Updates    5.9 kB/s | 395  B     00:00    
RPM Fusion for Fedora 22 - Free                 1.1 MB/s | 467 kB     00:00    
Adobe Systems Incorporated                       12 kB/s | 1.8 kB     00:00    
RPM Fusion for Fedora 22 - Nonfree              740 kB/s | 141 kB     00:00    
Last metadata expiration check performed 0:00:00 ago on Wed Jun  3 12:12:38 2015.
Dependencies resolved.
================================================================================
 Package                      Arch           Version       Repository      Size
================================================================================
Installing:
 fedora-repos-rawhide         noarch         22-1          fedora         9.1 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 9.1 k
Installed size: 2.1 k
Is this ok [y/N]: y
Downloading Packages:
fedora-repos-rawhide-22-1.noarch.rpm            128 kB/s | 9.1 kB     00:00    
--------------------------------------------------------------------------------
Total                                           3.1 kB/s | 9.1 kB     00:02     
warning: /var/cache/dnf/i386/22/fedora/packages/fedora-repos-rawhide-22-1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8e1431d5: NOKEY
Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 141, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving
    base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 216, in do_transaction
    self.gpgsigcheck(downloadpkgs)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 249, in gpgsigcheck
    self.getKeyForPackage(po, fn)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1737, in getKeyForPackage
    keys = dnf.crypto.retrieve(keyurl, repo)
  File "/usr/lib/python2.7/site-packages/dnf/crypto.py", line 124, in retrieve
    keyinfos = rawkey2infos(handle)
  File "/usr/lib/python2.7/site-packages/dnf/crypto.py", line 107, in rawkey2infos
    ctx.import_(key_fo)
gpgme.GpgmeError: (7, 32870, u'Inappropriate ioctl for device')
[root@localhost /]# 
[root@localhost /]# dnf install fedora-repos-rawhide --nogpgcheck
Last metadata expiration check performed 0:02:11 ago on Wed Jun  3 12:12:38 2015.
Dependencies resolved.
================================================================================
 Package                      Arch           Version       Repository      Size
================================================================================
Installing:
 fedora-repos-rawhide         noarch         22-1          fedora         9.1 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 9.1 k
Installed size: 2.1 k
Is this ok [y/N]: y
Downloading Packages:
fedora-repos-rawhide-22-1.noarch.rpm            131 kB/s | 9.1 kB     00:00    
--------------------------------------------------------------------------------
Total                                           4.8 kB/s | 9.1 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : fedora-repos-rawhide-22-1.noarch                            1/1 
  Verifying   : fedora-repos-rawhide-22-1.noarch                            1/1 

Installed:
  fedora-repos-rawhide.noarch 22-1                                              

Complete!
[root@localhost /]# 

Now ? I never ran into such issue with yum. Could it be that dnf has issues running in a chroot environment ? Right now I had to enforce nogpg check to install this single package and I am not sure whether the key got added to the repository or not.

Before that I installed the rpmfusion packages as well as adobe repo packages perfectly without any issue. I am lusing trust, if I receive tracebacks like these.

Comment 1 Ali Akcaagac 2015-06-03 10:26:21 UTC
#!/bin/bash --login
# Begin chroot.sh

CHROOT="/.cdrom"

mount -o bind "/dev"  "${CHROOT}/dev"
mount -o bind "/run"  "${CHROOT}/run"
mount -o bind "/sys"  "${CHROOT}/sys"
mount -t proc "/proc" "${CHROOT}/proc"

chroot "${CHROOT}"

umount "${CHROOT}/dev" "${CHROOT}/run" "${CHROOT}/sys" "${CHROOT}/proc"

exit
# End chroot.sh

Issues with inappropriate device ? I doubt so.

Comment 2 Ali Akcaagac 2015-06-03 12:28:24 UTC
Total download size: 340 M
Is this ok [y/N]: y
Downloading Packages:
(1/175): kernel-4.0.4-303.fc22.i686.rpm          96 kB/s |  65 kB     00:00    
(2/175): systemd-compat-libs-219-15.fc22.i686.r 125 kB/s | 140 kB     00:01    
(3/175): sqlite-3.8.10.2-1.fc22.i686.rpm        160 kB/s | 479 kB     00:02    
(4/175): stunnel-5.16-1.fc22.i686.rpm           146 kB/s | 134 kB     00:00    
(5/175): system-config-printer-libs-1.5.7-3.fc2 485 kB/s | 829 kB     00:01    
(6/175): system-config-printer-udev-1.5.7-3.fc2 134 kB/s | 101 kB     00:00    
(7/175): unbound-libs-1.5.3-4.fc22.i686.rpm     181 kB/s | 361 kB     00:02    
(8/175): upower-0.99.3-1.fc22.i686.rpm          178 kB/s | 148 kB     00:00    
(9/175): kernel-modules-4.0.4-303.fc22.i686.rpm 1.0 MB/s |  17 MB     00:16    
(10/175): kernel-core-4.0.4-303.fc22.i686.rpm   886 kB/s |  18 MB     00:21    
(11/175): xorg-x11-drv-geode-2.11.17-1.fc22.i68  92 kB/s | 137 kB     00:01    
(12/175): xorg-x11-drv-intel-2.99.917-10.201505 330 kB/s | 691 kB     00:02    
(13/175): xorg-x11-drv-libinput-0.10.0-5.fc22.i  11 kB/s |  28 kB     00:02    
(14/175): xorg-x11-server-Xorg-1.17.1-14.fc22.i 483 kB/s | 1.5 MB     00:03    
(15/175): xorg-x11-server-common-1.17.1-14.fc22  63 kB/s |  44 kB     00:00    
(16/175): xorg-x11-drv-vmmouse-13.0.99-1.fc22.i  57 kB/s |  28 kB     00:00    
(17/175): webkitgtk4-2.8.3-2.fc22.i686.rpm      1.2 MB/s |  21 MB     00:17    
(18/175): webkitgtk3-2.4.9-1.fc22.i686.rpm      540 kB/s |  13 MB     00:23    
(19/175): xorg-x11-server-Xwayland-1.17.1-14.fc 276 kB/s | 935 kB     00:03    
(20/175): NetworkManager-openvpn-1.0.2-2.fc22.i  93 kB/s | 188 kB     00:02    
(21/175): abrt-2.5.1-3.fc22.i686.rpm            565 kB/s | 514 kB     00:00    
(22/175): NetworkManager-openvpn-gnome-1.0.2-2.  60 kB/s |  69 kB     00:01    
(23/175): abrt-libs-2.5.1-3.fc22.i686.rpm       366 kB/s | 115 kB     00:00    
(24/175): abrt-python-2.5.1-3.fc22.i686.rpm     172 kB/s | 112 kB     00:00    
(25/175): abrt-retrace-client-2.5.1-3.fc22.i686 403 kB/s | 125 kB     00:00    
(26/175): abrt-tui-2.5.1-3.fc22.i686.rpm        147 kB/s | 100 kB     00:00    
(27/175): abrt-python3-2.5.1-3.fc22.i686.rpm    312 kB/s | 112 kB     00:00    
(28/175): abrt-plugin-bodhi-2.5.1-3.fc22.i686.r 323 kB/s |  98 kB     00:00    
(29/175): abrt-dbus-2.5.1-3.fc22.i686.rpm       370 kB/s | 123 kB     00:00    
(30/175): abrt-desktop-2.5.1-3.fc22.i686.rpm    230 kB/s |  90 kB     00:00    
(31/175): abrt-gui-2.5.1-3.fc22.i686.rpm        426 kB/s | 186 kB     00:00    
(32/175): abrt-cli-2.5.1-3.fc22.i686.rpm        351 kB/s |  90 kB     00:00    
(33/175): abrt-addon-vmcore-2.5.1-3.fc22.i686.r 355 kB/s | 109 kB     00:00    
(34/175): abrt-addon-xorg-2.5.1-3.fc22.i686.rpm 286 kB/s |  99 kB     00:00    
(35/175): abrt-addon-python3-2.5.1-3.fc22.i686. 301 kB/s |  98 kB     00:00    
(36/175): abrt-addon-python-2.5.1-3.fc22.i686.r 322 kB/s | 100 kB     00:00    
(37/175): abrt-addon-pstoreoops-2.5.1-3.fc22.i6 284 kB/s |  99 kB     00:00    
(38/175): abrt-addon-kerneloops-2.5.1-3.fc22.i6 312 kB/s | 120 kB     00:00    
(39/175): abrt-gui-libs-2.5.1-3.fc22.i686.rpm   311 kB/s |  99 kB     00:00    
(40/175): abrt-addon-ccpp-2.5.1-3.fc22.i686.rpm 456 kB/s | 184 kB     00:00    
(41/175): abrt-addon-coredump-helper-2.5.1-3.fc 315 kB/s | 103 kB     00:00    
(42/175): autocorr-en-4.4.3.2-5.fc22.noarch.rpm 464 kB/s | 174 kB     00:00    
(43/175): clutter-gst3-3.0.6-1.fc22.i686.rpm     95 kB/s |  78 kB     00:00    
(44/175): cyrus-sasl-2.1.26-23.fc22.i686.rpm    109 kB/s |  92 kB     00:00    
(45/175): cyrus-sasl-lib-2.1.26-23.fc22.i686.rp 269 kB/s | 160 kB     00:00    
(46/175): cyrus-sasl-scram-2.1.26-23.fc22.i686.  95 kB/s |  47 kB     00:00    
(47/175): bash-4.3.39-1.fc22.i686.rpm           863 kB/s | 1.6 MB     00:01    
(48/175): cyrus-sasl-plain-2.1.26-23.fc22.i686.  94 kB/s |  43 kB     00:00    
(49/175): cyrus-sasl-md5-2.1.26-23.fc22.i686.rp 115 kB/s |  61 kB     00:00    
(50/175): cyrus-sasl-gssapi-2.1.26-23.fc22.i686  53 kB/s |  46 kB     00:00    
(51/175): dos2unix-7.2.2-1.fc22.i686.rpm        261 kB/s | 176 kB     00:00    
(52/175): evince-nautilus-3.16.1-1.fc22.i686.rp  66 kB/s |  41 kB     00:00    
(53/175): evince-libs-3.16.1-1.fc22.i686.rpm    327 kB/s | 353 kB     00:01    
(54/175): evince-browser-plugin-3.16.1-1.fc22.i 110 kB/s |  56 kB     00:00    
(55/175): evince-3.16.1-1.fc22.i686.rpm         1.2 MB/s | 2.3 MB     00:01    
(56/175): libgdata-0.17.1-1.fc22.i686.rpm       317 kB/s | 421 kB     00:01    
(57/175): evolution-help-3.16.2.1-2.fc22.noarch 575 kB/s | 2.1 MB     00:03    
(58/175): evolution-3.16.2.1-2.fc22.i686.rpm    1.1 MB/s | 8.5 MB     00:07    
(59/175): fontpackages-filesystem-1.44-12.fc22.  18 kB/s |  14 kB     00:00    
(60/175): evolution-data-server-3.16.2-3.fc22.i 418 kB/s | 2.9 MB     00:07    
(61/175): foomatic-db-filesystem-4.0-45.2015041  26 kB/s |  14 kB     00:00    
(62/175): foomatic-db-4.0-45.20150415.fc22.noar 597 kB/s | 1.1 MB     00:01    
(63/175): fpaste-0.3.7.4-1.fc22.noarch.rpm      110 kB/s |  37 kB     00:00    
(64/175): fuse-2.9.4-1.fc22.i686.rpm            141 kB/s |  89 kB     00:00    
(65/175): fuse-libs-2.9.4-1.fc22.i686.rpm       155 kB/s | 102 kB     00:00    
(66/175): genisoimage-1.1.11-28.fc22.i686.rpm   141 kB/s | 294 kB     00:02    
(67/175): libusal-1.1.11-28.fc22.i686.rpm        50 kB/s | 139 kB     00:02    
(68/175): git-2.4.2-1.fc22.i686.rpm             480 kB/s | 5.1 MB     00:10    
(69/175): perl-Git-2.4.2-1.fc22.noarch.rpm       56 kB/s |  59 kB     00:01    
(70/175): gnome-boxes-3.16.2-2.fc22.i686.rpm    298 kB/s | 933 kB     00:03    
(71/175): libosinfo-0.2.12-1.fc22.i686.rpm      164 kB/s | 261 kB     00:01    
(72/175): gnome-calculator-3.16.1-1.fc22.i686.r 226 kB/s | 966 kB     00:04    
(73/175): gnome-disk-utility-3.16.2-1.fc22.i686 290 kB/s | 985 kB     00:03    
(74/175): gnome-documents-3.16.2-2.fc22.i686.rp 310 kB/s | 490 kB     00:01    
(75/175): gnome-documents-libs-3.16.2-2.fc22.i6 187 kB/s | 223 kB     00:01    
(76/175): gnome-online-miners-3.14.3-2.fc22.i68 102 kB/s |  95 kB     00:00    
(77/175): grilo-plugins-0.2.14-3.fc22.i686.rpm  270 kB/s | 405 kB     00:01    
(78/175): gutenprint-5.2.10-11.fc22.i686.rpm    551 kB/s | 2.3 MB     00:04    
(79/175): gutenprint-libs-5.2.10-11.fc22.i686.r 175 kB/s | 130 kB     00:00    
(80/175): gutenprint-cups-5.2.10-11.fc22.i686.r 367 kB/s | 399 kB     00:01    
(81/175): foomatic-db-ppds-4.0-45.20150415.fc22 774 kB/s |  34 MB     00:45    
(82/175): highlight-3.22-1.fc22.i686.rpm        288 kB/s | 674 kB     00:02    
(83/175): ibus-1.5.10-5.fc22.i686.rpm           232 kB/s | 365 kB     00:01    
(84/175): ibus-gtk2-1.5.10-5.fc22.i686.rpm       82 kB/s |  50 kB     00:00    
(85/175): hwdata-0.278-1.fc22.noarch.rpm        431 kB/s | 1.3 MB     00:03    
(86/175): ibus-wayland-1.5.10-5.fc22.i686.rpm    74 kB/s |  46 kB     00:00    
(87/175): ibus-setup-1.5.10-5.fc22.noarch.rpm   137 kB/s |  80 kB     00:00    
(88/175): ibus-libs-1.5.10-5.fc22.i686.rpm      162 kB/s | 212 kB     00:01    
(89/175): ibus-gtk3-1.5.10-5.fc22.i686.rpm       74 kB/s |  50 kB     00:00    
(90/175): iwl100-firmware-39.31.5.1-52.fc22.noa 136 kB/s | 151 kB     00:01    
(91/175): iwl1000-firmware-39.31.5.1-52.fc22.no 185 kB/s | 215 kB     00:01    
(92/175): iwl105-firmware-18.168.6.1-52.fc22.no 274 kB/s | 236 kB     00:00    
(93/175): iwl135-firmware-18.168.6.1-52.fc22.no 261 kB/s | 245 kB     00:00    
(94/175): iwl2000-firmware-18.168.6.1-52.fc22.n 243 kB/s | 238 kB     00:00    
(95/175): iwl2030-firmware-18.168.6.1-52.fc22.n 273 kB/s | 247 kB     00:00    
(96/175): iwl3945-firmware-15.32.2.9-52.fc22.no 145 kB/s |  89 kB     00:00    
(97/175): iwl4965-firmware-228.61.2.24-52.fc22. 153 kB/s | 103 kB     00:00    
(98/175): iwl3160-firmware-25.17.12.0-52.fc22.n 385 kB/s | 731 kB     00:01    
(99/175): iwl5000-firmware-8.83.5.1_1-52.fc22.n 265 kB/s | 295 kB     00:01    
(100/175): iwl5150-firmware-8.24.2.2-52.fc22.no 181 kB/s | 148 kB     00:00    
(101/175): iwl6000-firmware-9.221.4.1-52.fc22.n 173 kB/s | 168 kB     00:00    
(102/175): iwl6000g2a-firmware-18.168.6.1-52.fc 216 kB/s | 311 kB     00:01    
(103/175): iwl6000g2b-firmware-18.168.6.1-52.fc 191 kB/s | 312 kB     00:01    
(104/175): iwl6050-firmware-41.28.5.1-52.fc22.n 198 kB/s | 244 kB     00:01    
(105/175): firefox-38.0.1-6.fc22.i686.rpm       1.0 MB/s |  70 MB     01:08    
(106/175): iwl7260-firmware-25.17.12.0-52.fc22. 222 kB/s | 1.5 MB     00:06    
(107/175): less-471-4.fc22.i686.rpm             111 kB/s | 129 kB     00:01    
(108/175): libcap-ng-0.7.5-2.fc22.i686.rpm       50 kB/s |  29 kB     00:00    
(109/175): libdb-5.3.28-12.fc22.i686.rpm        746 kB/s | 763 kB     00:01    
(110/175): libdb-utils-5.3.28-12.fc22.i686.rpm   91 kB/s | 109 kB     00:01    
(111/175): libertas-usb8388-firmware-20150521-5 271 kB/s | 114 kB     00:00    
(112/175): libetonyek-0.1.2-2.fc22.i686.rpm     369 kB/s | 282 kB     00:00    
(113/175): libgsf-1.14.33-1.fc22.i686.rpm       325 kB/s | 249 kB     00:00    
(114/175): libgsystem-2015.1-2.fc22.i686.rpm    159 kB/s |  43 kB     00:00    
(115/175): libgusb-0.2.5-1.fc22.i686.rpm         87 kB/s |  43 kB     00:00    
(116/175): libhif-0.2.0-4.fc22.i686.rpm         144 kB/s |  78 kB     00:00    
(117/175): libinput-0.15.0-4.fc22.i686.rpm      220 kB/s |  80 kB     00:00    
(118/175): libodfgen-0.1.4-1.fc22.i686.rpm      290 kB/s | 235 kB     00:00    
(119/175): libpcap-1.7.3-1.fc22.i686.rpm        112 kB/s | 151 kB     00:01    
(120/175): libmwaw-0.3.5-1.fc22.i686.rpm        1.0 MB/s | 2.3 MB     00:02    
(121/175): librados2-0.94.1-3.fc22.i686.rpm     641 kB/s | 1.8 MB     00:02    
(122/175): librbd1-0.94.1-3.fc22.i686.rpm       671 kB/s | 1.9 MB     00:02    
(123/175): libreport-2.5.1-2.fc22.i686.rpm      501 kB/s | 451 kB     00:00    
(124/175): libreport-filesystem-2.5.1-2.fc22.i6 124 kB/s |  43 kB     00:00    
(125/175): libpurple-2.10.11-11.fc22.i686.rpm   789 kB/s | 5.8 MB     00:07    
(126/175): libreport-web-2.5.1-2.fc22.i686.rpm  160 kB/s |  59 kB     00:00    
(127/175): libreport-python-2.5.1-2.fc22.i686.r 225 kB/s |  76 kB     00:00    
(128/175): libreport-python3-2.5.1-2.fc22.i686. 115 kB/s |  77 kB     00:00    
(129/175): libreport-plugin-ureport-2.5.1-2.fc2 168 kB/s |  61 kB     00:00    
(130/175): libreport-plugin-reportuploader-2.5. 119 kB/s |  64 kB     00:00    
(131/175): libreport-plugin-logger-2.5.1-2.fc22 104 kB/s |  58 kB     00:00    
(132/175): libreport-plugin-kerneloops-2.5.1-2. 137 kB/s |  53 kB     00:00    
(133/175): libreport-plugin-bugzilla-2.5.1-2.fc 244 kB/s |  86 kB     00:00    
(134/175): libreport-gtk-2.5.1-2.fc22.i686.rpm  300 kB/s | 107 kB     00:00    
(135/175): libreport-fedora-2.5.1-2.fc22.i686.r 134 kB/s |  49 kB     00:00    
(136/175): libreport-cli-2.5.1-2.fc22.i686.rpm  149 kB/s |  55 kB     00:00    
(137/175): libselinux-2.3-10.fc22.i686.rpm      344 kB/s | 150 kB     00:00    
(138/175): libselinux-utils-2.3-10.fc22.i686.rp 282 kB/s | 141 kB     00:00    
(139/175): libselinux-python-2.3-10.fc22.i686.r 438 kB/s | 292 kB     00:00    
(140/175): libsmbclient-4.2.2-0.fc22.i686.rpm   200 kB/s | 118 kB     00:00    
(141/175): samba-common-4.2.2-0.fc22.noarch.rpm 145 kB/s | 160 kB     00:01    
(142/175): samba-client-4.2.2-0.fc22.i686.rpm   335 kB/s | 496 kB     00:01    
(143/175): samba-common-libs-4.2.2-0.fc22.i686. 186 kB/s | 155 kB     00:00    
(144/175): libwbclient-4.2.2-0.fc22.i686.rpm     65 kB/s |  94 kB     00:01    
(145/175): libtiff-4.0.3-20.fc22.i686.rpm       193 kB/s | 177 kB     00:00    
(146/175): libtirpc-0.3.1-0.0.fc22.i686.rpm     117 kB/s |  93 kB     00:00    
(147/175): libxcb-1.11-5.fc22.i686.rpm          208 kB/s | 205 kB     00:00    
(148/175): samba-client-libs-4.2.2-0.fc22.i686. 529 kB/s | 4.4 MB     00:08    
(149/175): lua-expat-1.3.0-5.fc22.i686.rpm       28 kB/s |  36 kB     00:01    
(150/175): lz4-r129-1.fc22.i686.rpm             127 kB/s |  82 kB     00:00    
(151/175): java-1.8.0-openjdk-headless-1.8.0.45 924 kB/s |  31 MB     00:34    
(152/175): man-db-2.7.1-5.fc22.i686.rpm         356 kB/s | 824 kB     00:02    
(153/175): meanwhile-1.1.0-17.fc22.i686.rpm      62 kB/s |  99 kB     00:01    
(154/175): mlocate-0.26-10.fc22.i686.rpm        136 kB/s | 119 kB     00:00    
(155/175): nfs-utils-1.3.2-7.fc22.i686.rpm      171 kB/s | 369 kB     00:02    
(156/175): nss-3.19.1-1.0.fc22.i686.rpm         397 kB/s | 868 kB     00:02    
(157/175): nss-util-3.19.1-1.0.fc22.i686.rpm    123 kB/s |  80 kB     00:00    
(158/175): nss-softokn-3.19.1-1.0.fc22.i686.rpm 255 kB/s | 319 kB     00:01    
(159/175): nss-softokn-freebl-3.19.1-1.0.fc22.i 182 kB/s | 196 kB     00:01    
(160/175): man-pages-3.81-2.fc22.noarch.rpm     481 kB/s | 5.6 MB     00:11    
(161/175): nss-sysinit-3.19.1-1.0.fc22.i686.rpm  42 kB/s |  54 kB     00:01    
(162/175): nss-tools-3.19.1-1.0.fc22.i686.rpm   274 kB/s | 501 kB     00:01    
(163/175): linux-firmware-20150521-52.git3161bf 1.3 MB/s |  25 MB     00:19    
(164/175): ntfs-3g-2015.3.14-2.fc22.i686.rpm    126 kB/s | 310 kB     00:02    
(165/175): ntfsprogs-2015.3.14-2.fc22.i686.rpm  129 kB/s | 295 kB     00:02    
(166/175): openssh-server-6.8p1-6.fc22.i686.rpm 454 kB/s | 479 kB     00:01    
(167/175): openssh-6.8p1-6.fc22.i686.rpm        366 kB/s | 488 kB     00:01    
(168/175): openssh-clients-6.8p1-6.fc22.i686.rp 530 kB/s | 699 kB     00:01    
(169/175): openssh-askpass-6.8p1-6.fc22.i686.rp 250 kB/s |  76 kB     00:00    
(170/175): perl-HTTP-Tiny-0.056-1.fc22.noarch.r  99 kB/s |  52 kB     00:00    
(171/175): perl-Scalar-List-Utils-1.42-1.fc22.i  12 kB/s |  61 kB     00:05    
(172/175): protobuf-2.5.0-12.fc22.i686.rpm       67 kB/s | 354 kB     00:05    
(173/175): protobuf-compiler-2.5.0-12.fc22.i686 359 kB/s | 265 kB     00:00    
(174/175): qt-settings-22-10.fc22.noarch.rpm     54 kB/s |  24 kB     00:00    
(175/175): oxygen-icon-theme-15.04.1-1.fc22.noa 1.1 MB/s |  29 MB     00:25    
--------------------------------------------------------------------------------
Total                                           1.8 MB/s | 340 MB     03:09     
warning: /var/cache/dnf/i386/22/updates/packages/kernel-4.0.4-303.fc22.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 8e1431d5: NOKEY
Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 141, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving
    base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 216, in do_transaction
    self.gpgsigcheck(downloadpkgs)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 249, in gpgsigcheck
    self.getKeyForPackage(po, fn)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1737, in getKeyForPackage
    keys = dnf.crypto.retrieve(keyurl, repo)
  File "/usr/lib/python2.7/site-packages/dnf/crypto.py", line 124, in retrieve
    keyinfos = rawkey2infos(handle)
  File "/usr/lib/python2.7/site-packages/dnf/crypto.py", line 107, in rawkey2infos
    ctx.import_(key_fo)
gpgme.GpgmeError: (7, 32870, u'Inappropriate ioctl for device')
[root@localhost /]# 

-?-

Comment 3 Ali Akcaagac 2015-06-03 12:30:58 UTC
Nice. Not that I had to re-apply --nogpgcheck check again. It also download all packages over again. Have you thought about the use case where you are hooked up on a volume based line ? The packages got downloaded already so why downloading them again ?

Comment 4 Ali Akcaagac 2015-06-03 12:40:16 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1226715

Same issue.

Comment 5 Ali Akcaagac 2015-06-03 12:44:19 UTC
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/41

CementOS same issue.

Comment 6 Ali Akcaagac 2015-06-03 12:55:54 UTC
-bash-4.3$ pwd ; ls -l
/.cdrom/etc/pki/rpm-gpg
total 44
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-22-fedora -> RPM-GPG-KEY-fedora-22-primary
-rw-r--r-- 1 root root 1726 Jun  3 00:00 RPM-GPG-KEY-adobe-linux
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-22-aarch64 -> RPM-GPG-KEY-fedora-22-secondary
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-fedora-22-armhfp -> RPM-GPG-KEY-fedora-22-primary
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-fedora-22-i386 -> RPM-GPG-KEY-fedora-22-primary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-22-ppc64 -> RPM-GPG-KEY-fedora-22-secondary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-22-ppc64le -> RPM-GPG-KEY-fedora-22-secondary
-rw-r--r-- 1 root root 1658 Jun  3 00:00 RPM-GPG-KEY-fedora-22-primary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-22-s390 -> RPM-GPG-KEY-fedora-22-secondary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-22-s390x -> RPM-GPG-KEY-fedora-22-secondary
-rw-r--r-- 1 root root 3819 Jun  3 00:00 RPM-GPG-KEY-fedora-22-secondary
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-fedora-22-x86_64 -> RPM-GPG-KEY-fedora-22-primary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-23-aarch64 -> RPM-GPG-KEY-fedora-23-secondary
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-fedora-23-armhfp -> RPM-GPG-KEY-fedora-23-primary
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-fedora-23-i386 -> RPM-GPG-KEY-fedora-23-primary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-23-ppc64 -> RPM-GPG-KEY-fedora-23-secondary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-23-ppc64le -> RPM-GPG-KEY-fedora-23-secondary
-rw-r--r-- 1 root root 1674 Jun  3 00:00 RPM-GPG-KEY-fedora-23-primary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-23-s390 -> RPM-GPG-KEY-fedora-23-secondary
lrwxrwxrwx 1 root root   31 Jun  3 00:00 RPM-GPG-KEY-fedora-23-s390x -> RPM-GPG-KEY-fedora-23-secondary
-rw-r--r-- 1 root root 3145 Jun  3 00:00 RPM-GPG-KEY-fedora-23-secondary
lrwxrwxrwx 1 root root   29 Jun  3 00:00 RPM-GPG-KEY-fedora-23-x86_64 -> RPM-GPG-KEY-fedora-23-primary
lrwxrwxrwx 1 root root   44 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora -> RPM-GPG-KEY-rpmfusion-free-fedora-22-primary
lrwxrwxrwx 1 root root   44 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-22 -> RPM-GPG-KEY-rpmfusion-free-fedora-22-primary
-rw-r--r-- 1 root root 1719 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-22-primary
lrwxrwxrwx 1 root root   44 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-23 -> RPM-GPG-KEY-rpmfusion-free-fedora-23-primary
-rw-r--r-- 1 root root 1694 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-23-primary
lrwxrwxrwx 1 root root   44 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-24 -> RPM-GPG-KEY-rpmfusion-free-fedora-24-primary
-rw-r--r-- 1 root root 1694 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-24-primary
lrwxrwxrwx 1 root root   44 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-latest -> RPM-GPG-KEY-rpmfusion-free-fedora-23-primary
lrwxrwxrwx 1 root root   44 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-free-fedora-rawhide -> RPM-GPG-KEY-rpmfusion-free-fedora-24-primary
lrwxrwxrwx 1 root root   47 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-22-primary
lrwxrwxrwx 1 root root   47 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-22 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-22-primary
-rw-r--r-- 1 root root 1723 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-22-primary
lrwxrwxrwx 1 root root   47 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-23 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-23-primary
-rw-r--r-- 1 root root 1698 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-23-primary
lrwxrwxrwx 1 root root   47 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-24 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-24-primary
-rw-r--r-- 1 root root 1698 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-24-primary
lrwxrwxrwx 1 root root   47 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-latest -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-23-primary
lrwxrwxrwx 1 root root   47 Jun  3 00:00 RPM-GPG-KEY-rpmfusion-nonfree-fedora-rawhide -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-24-primary
-bash-4.3$ 

Please note that /.cdrom is a chroot environment that I enter with above bash script. The unmount in above bash script happens, once the chroot is left. So within the chroot the directory of course is /etc/pki/...

Comment 7 Radek Holy 2015-06-03 13:52:54 UTC
Hello, thank you for the report. There is a problem in how DNF uses the GPG library (or in the library itself). For some reason it expects standard input to be interactive.

*** This bug has been marked as a duplicate of bug 1224908 ***


Note You need to log in before you can comment on or make changes to this bug.