Ask Your Question
0

dnf update is not installing some files

asked 2018-02-06 02:35:38 -0600

hitsos7 gravatar image

updated 2018-02-07 19:23:20 -0600

ssieb gravatar image

ow I forgot that I am connected by a enterprise network in a hospital, maybe thats why I get all these problems

here is the terminal code

[hitsos@hitsosonef ~]$ sudo dnf update
[sudo] password for hitsos: 
Last metadata expiration check: 0:43:11 ago on Tue 06 Feb 2018 09:47:05 AM EET.
Dependencies resolved.
================================================================================
 Package                       Arch       Version   Repository             Size
================================================================================
Upgrading:
 rpmfusion-free-release        noarch     27-1      rpmfusion-free         20 k
 rpmfusion-nonfree-release     noarch     27-1      rpmfusion-nonfree      20 k

Transaction Summary
================================================================================
Upgrade  2 Packages

Total size: 40 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] rpmfusion-free-release-27-1.noarch.rpm: Already downloaded           
[SKIPPED] rpmfusion-nonfree-release-27-1.noarch.rpm: Already downloaded        
warning: /var/cache/dnf/rpmfusion-free-bb633ef348ecd3c8/packages/rpmfusion-free-release-27-1.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 7d838377: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-27 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-27]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

as requested

[hitsos@hitsosonef ~]$ rpm -qa | grep rpmfusion
rpmfusion-nonfree-release-24-3.noarch
rpmfusion-free-release-24-3.noarch
[hitsos@hitsosonef ~]$ rpm -qV rpmfusion-free-release
[hitsos@hitsosonef ~]$ ls -l /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion*
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora -> RPM-GPG-KEY-rpmfusion-free-fedora-24-primary
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-23 -> RPM-GPG-KEY-rpmfusion-free-fedora-23-primary
-rw-r--r--. 1 root root 1694 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-23-primary
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-24 -> RPM-GPG-KEY-rpmfusion-free-fedora-24-primary
-rw-r--r--. 1 root root 1694 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-24-primary
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-25 -> RPM-GPG-KEY-rpmfusion-free-fedora-25-primary
-rw-r--r--. 1 root root 1694 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-25-primary
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26 -> RPM-GPG-KEY-rpmfusion-free-fedora-26-primary
-rw-r--r--. 1 root root 1676 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26-primary
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-latest -> RPM-GPG-KEY-rpmfusion-free-fedora-25-primary
lrwxrwxrwx. 1 root root   44 Nov 27  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-rawhide -> RPM-GPG-KEY-rpmfusion-free-fedora-26-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-24-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-23 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-23-primary
-rw-r--r--. 1 root root 1698 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-23-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-24 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-24-primary
-rw-r--r--. 1 root root 1698 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-24-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-25 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-25-primary
-rw-r--r--. 1 root root 1698 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-25-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-26 -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-26-primary
-rw-r--r--. 1 root root 1680 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-26-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-latest -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-25-primary
lrwxrwxrwx. 1 root root   47 Nov 28  2016 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-rawhide -> RPM-GPG-KEY-rpmfusion-nonfree-fedora-26-primary

the no gpg check worked a bit I am happy but I heard its not safe

I will try the safe option too

the safe option failed

[hitsos@hitsosonef ~]$ rpm --import ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-02-06 12:59:44 -0600

ssieb gravatar image

updated 2018-02-06 14:13:12 -0600

I don't know why you don't already have the key installed since you're doing an upgrade. What is the output of rpm -qa | grep rpmfusion, rpm -qV rpmfusion-free-release, and ls -l /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion*.

The easiest solution is to just add --nogpgcheck to the dnf command.

The safer solution is to run rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-27'

edit flag offensive delete link more

Comments

Running with --nogpgcheck is not good practice! Try to "reinstall" rpmfusions GPG keys first. Check out https://rpmfusion.org/keys for more info

florian gravatar imageflorian ( 2018-02-06 13:54:22 -0600 )edit

In general, yes, but in this case, it's unlikely to be a problem. Anyway, I changed the answer to include the safer method. I would still like to know why the key is missing in the first place though.

ssieb gravatar imagessieb ( 2018-02-06 14:12:33 -0600 )edit

The gpg key is provided by the packages that is being upgraded.

$ rpm -qf /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-27
rpmfusion-free-release-27-1.noarch

And also by the rpmfusion-free-release package from fc26 and fc25.

We need the info from the OP.

villykruse gravatar imagevillykruse ( 2018-02-06 14:20:14 -0600 )edit

I edited my question with info

[hitsos@hitsosonef ~]$ rpm -qf /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-27rpmfusion-free-release-27-1.noarch error: file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-27rpmfusion-free-release-27-1.noarch: No such file or directory

hitsos7 gravatar imagehitsos7 ( 2018-02-07 05:18:25 -0600 )edit
1

You forgot the sudo when you tried to import the key. How did you upgrade Fedora to F27 without upgrading the rpmfusion release packages? You still have the F24 versions which don't have the keys you need. That's why you're having this problem. Did you upgrade Fedora from F24 to F27 directly?

ssieb gravatar imagessieb ( 2018-02-07 19:25:53 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-02-06 02:35:38 -0600

Seen: 1,392 times

Last updated: Feb 07 '18