Page 1 of 1
Upgrade failes with "GPG key retrieval failed"
Posted: Wed Oct 16, 2019 2:36 am
by noweda
Hi all,
full error is:
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS
while upgrading from 5.6.6 to 5.6.7 via console.
kind regards,
Tim
Re: Upgrade failes with "GPG key retrieval failed"
Posted: Wed Oct 16, 2019 8:31 am
by scottwilkerson
Are you on CentOS 7?
If so lets run the following
Code: Select all
yum -y remove nagios-repo && yum -y install https://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm
Then try the upgrade again
If not, let us know what OS and version you are running
Re: Upgrade failes with "GPG key retrieval failed"
Posted: Thu Oct 17, 2019 4:13 am
by noweda
Hi Scott,
thanks for your response, we are running on "CentOS release 6.10 (Final)"
kind regards,
simon
Re: Upgrade failes with "GPG key retrieval failed"
Posted: Thu Oct 17, 2019 6:25 am
by scottwilkerson
Ok the commands would be:
Code: Select all
yum -y remove nagios-repo && yum -y install https://repo.nagios.com/nagios/6/nagios-repo-6-4.el6.noarch.rpm
then re-run the upgrade
Re: Upgrade failes with "GPG key retrieval failed"
Posted: Tue Oct 29, 2019 7:52 am
by noweda
Hi Scott,
thanks - the latest version is installed now. We kopied the existing file
/etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2 to
/etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS
and the update worked.
After we deleted RPM-GPG-KEY-NAGIOS and re-added the repo another Update Re-Run was successful.
kind regards
simon
Re: Upgrade failes with "GPG key retrieval failed"
Posted: Tue Oct 29, 2019 10:21 am
by benjaminsmith
Simon,
Thanks for update and glad it hear the re-run was a success.
We'll close this one out. Feel free to open another post if you have any new questions.