After upgrading nagios-repo package from version nagios-repo-7-2.el7.noarch.rpm to nagios-repo-7-3.el7.noarch.rpm we encounter upgrade NCPA errors:
We came up with this workaround:GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS"
# cp -p RPM-GPG-KEY-NAGIOS-V2 RPM-GPG-KEY-NAGIOS
or this one:
# yum -y remove nagios-repo && yum -y install https://repo.nagios.com/nagios/7/nagios ... noarch.rpm
However the most elegant option would be that maintainers of this nagios-repo RPM package would replace the current GPG key file that is most probably marked with
to%config(noreplace)
%config
These directives are explained on http://people.ds.cam.ac.uk/jw35/docs/rpm_config.html
Best regards, Jørgen van der Meulen