Upgrade failes with "GPG key retrieval failed"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
noweda
Posts: 52
Joined: Fri Dec 06, 2013 2:47 am

Upgrade failes with "GPG key retrieval failed"

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade failes with "GPG key retrieval failed"

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
noweda
Posts: 52
Joined: Fri Dec 06, 2013 2:47 am

Re: Upgrade failes with "GPG key retrieval failed"

Post by noweda »

Hi Scott,

thanks for your response, we are running on "CentOS release 6.10 (Final)"

kind regards,
simon
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade failes with "GPG key retrieval failed"

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
noweda
Posts: 52
Joined: Fri Dec 06, 2013 2:47 am

Re: Upgrade failes with "GPG key retrieval failed"

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Upgrade failes with "GPG key retrieval failed"

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked