Ask Your Question

dnf update error:

asked 2018-05-18 23:56:04 -0500

dylanthomas gravatar image

I can't seem to update any packages using the "sudo dnf update" command.

I simply get this error

warning: /var/cache/dnf/ol6_latest-2bddc48c5fc3b48d/packages/redhat-release-server-6Server- Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle]

The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-19 02:55:51 -0500

florian gravatar image

That means your are missing Oracle's package signing key (virtualbox). Try to follow the instructions here to import it:

edit flag offensive delete link more


yup! i removed the oracle repo from /etc/yum.repos.d/public-yum-ol6.repo and everything was back to normal! :) thank you

dylanthomas gravatar imagedylanthomas ( 2018-05-19 03:09:28 -0500 )edit

Or if you (want to) use the repo, just import their key.

florian gravatar imageflorian ( 2018-05-19 06:38:22 -0500 )edit

I think I manually added the key and I must have made some mistake. Anyways I decided to use virtualization kvm for now. Seems easier ;)

dylanthomas gravatar imagedylanthomas ( 2018-05-19 07:19:00 -0500 )edit

Question Tools

1 follower


Asked: 2018-05-18 23:54:42 -0500

Seen: 265 times

Last updated: May 19 '18