LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   GPG key retrieval failed, CentOS 5.1 (https://www.linuxquestions.org/questions/linux-general-1/gpg-key-retrieval-failed-centos-5-1-a-647407/)

triley 06-06-2008 07:14 AM

GPG key retrieval failed, CentOS 5.1
 
I keep getting an error when I try to run yum update. I can resolve my dependencies, but then when I try to download the packages, it fails. The error can be found on the last line, but here it is as well, GPG key retrieval failed: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>. I've updated my /etc/yum.conf to include my site's proxy.

Thoughts? Thanks.

[root@test3 ~]# yum update
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
[root@test3 ~]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package tzdata.noarch 0:2007k-2.el5 set to be updated
---> Package hal.i386 0:0.5.8.1-25.el5_1.1 set to be updated
---> Package samba-client.i386 0:3.0.25b-1.el5_1.4 set to be updated
---> Package sos.noarch 0:1.7-9.2.el5 set to be updated
---> Package hpijs.i386 1:1.6.7-4.1.el5.3 set to be updated
---> Package kernel-PAE.i686 0:2.6.18-53.1.21.el5 set to be installed
---> Package openoffice.org-writer.i386 1:2.0.4-5.4.26 set to be updated
---> Package selinux-policy.noarch 0:2.4.6-106.el5_1.3 set to be updated
---> Package libxslt.i386 0:1.1.17-2.el5_1.1 set to be updated
---> Package glibc-common.i386 0:2.5-18.el5_1.1 set to be updated
---> Package firefox.i386 0:1.5.0.12-15.el5.centos set to be updated
---> Package libxml2-devel.i386 0:2.6.26-2.1.2.1 set to be updated
---> Package libvorbis-devel.i386 1:1.1.2-3.el5_1.2 set to be updated
---> Package dbus-devel.i386 0:1.0.0-6.3.el5_1 set to be updated
---> Package gdb.i386 0:6.5-25.el5_1.1 set to be updated
---> Package nscd.i386 0:2.5-18.el5_1.1 set to be updated
---> Package postgresql-libs.i386 0:8.1.11-1.el5_1.1 set to be updated
---> Package e2fsprogs-devel.i386 0:1.39-10.el5_1.1 set to be updated
---> Package libXfont.i386 0:1.2.2-1.0.3.el5_1 set to be updated
---> Package krb5-workstation.i386 0:1.6.1-17.el5_1.1 set to be updated
---> Package cairo.i386 0:1.2.4-3.el5_1 set to be updated
---> Package cups-libs.i386 1:1.2.4-11.14.el5_1.6 set to be updated
---> Package kernel-headers.i386 0:2.6.18-53.1.21.el5 set to be updated
---> Package e2fsprogs.i386 0:1.39-10.el5_1.1 set to be updated
---> Package dbus-x11.i386 0:1.0.0-6.3.el5_1 set to be updated
---> Package openoffice.org-math.i386 1:2.0.4-5.4.26 set to be updated
.
.
.
.
.
Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel-PAE i686 2.6.18-53.1.21.el5 updates 13 M
kernel-PAE-devel i686 2.6.18-53.1.21.el5 updates 4.7 M
Updating:
autofs i386 1:5.0.1-0.rc2.55.el5.3 updates 801 k
cairo i386 1.2.4-3.el5_1 updates 394 k
cups i386 1:1.2.4-11.14.el5_1.6 updates 2.7 M
cups-libs i386 1:1.2.4-11.14.el5_1.6 updates 181 k
dbus i386 1.0.0-6.3.el5_1 updates 468 k
dbus-devel i386 1.0.0-6.3.el5_1 updates 37 k
dbus-x11 i386 1.0.0-6.3.el5_1 updates 27 k
device-mapper-multipath i386 0.4.7-12.el5_1.4 updates 2.0 M
.
.
.
.
.
tk i386 8.4.13-5.el5_1.1 updates 888 k
tomcat5-jsp-2.0-api i386 5.5.23-0jpp.3.0.3.el5_1 updates 93 k
tomcat5-servlet-2.4-api i386 5.5.23-0jpp.3.0.3.el5_1 updates 150 k
tzdata noarch 2007k-2.el5 updates 753 k
util-linux i386 2.13-0.45.el5_1.1 updates 1.8 M
xorg-x11-drv-keyboard i386 1.1.0-3 updates 14 k
xorg-x11-server-Xnest i386 1.1.1-48.26.el5_1.5 updates 1.4 M
xorg-x11-server-Xorg i386 1.1.1-48.26.el5_1.5 updates 3.2 M
xorg-x11-server-Xvfb i386 1.1.1-48.26.el5_1.5 updates 1.6 M

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 84 Package(s)
Remove 0 Package(s)

Total download size: 312 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897

GPG key retrieval failed: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>

unSpawn 06-06-2008 10:24 AM

No idea but "Name or service not known" looks like it can't resolve some host. Running Yum with max verbosity and debug mode or looking at your proxy logs should show. Try resolving address manually, also w/o proxy. In the mean time maybe grab the key manually and install so you can get on with updating?

tagky 10-08-2008 12:26 PM

Configure your http_proxy settings
 
I had the same problem before, behind a proxy. I added the proxy_http and proxy_ftp directives to my .bashrc file, and export both of them. That will allow yum to download the key for you. This is in addition to the proxy settings in the /etc/yum.conf file.


Quote:

Originally Posted by triley (Post 3176591)
I keep getting an error when I try to run yum update. I can resolve my dependencies, but then when I try to download the packages, it fails. The error can be found on the last line, but here it is as well, GPG key retrieval failed: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>. I've updated my /etc/yum.conf to include my site's proxy.

Thoughts? Thanks.

[root@test3 ~]# yum update
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
[root@test3 ~]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package tzdata.noarch 0:2007k-2.el5 set to be updated
---> Package hal.i386 0:0.5.8.1-25.el5_1.1 set to be updated
---> Package samba-client.i386 0:3.0.25b-1.el5_1.4 set to be updated
---> Package sos.noarch 0:1.7-9.2.el5 set to be updated
---> Package hpijs.i386 1:1.6.7-4.1.el5.3 set to be updated
---> Package kernel-PAE.i686 0:2.6.18-53.1.21.el5 set to be installed
---> Package openoffice.org-writer.i386 1:2.0.4-5.4.26 set to be updated
---> Package selinux-policy.noarch 0:2.4.6-106.el5_1.3 set to be updated
---> Package libxslt.i386 0:1.1.17-2.el5_1.1 set to be updated
---> Package glibc-common.i386 0:2.5-18.el5_1.1 set to be updated
---> Package firefox.i386 0:1.5.0.12-15.el5.centos set to be updated
---> Package libxml2-devel.i386 0:2.6.26-2.1.2.1 set to be updated
---> Package libvorbis-devel.i386 1:1.1.2-3.el5_1.2 set to be updated
---> Package dbus-devel.i386 0:1.0.0-6.3.el5_1 set to be updated
---> Package gdb.i386 0:6.5-25.el5_1.1 set to be updated
---> Package nscd.i386 0:2.5-18.el5_1.1 set to be updated
---> Package postgresql-libs.i386 0:8.1.11-1.el5_1.1 set to be updated
---> Package e2fsprogs-devel.i386 0:1.39-10.el5_1.1 set to be updated
---> Package libXfont.i386 0:1.2.2-1.0.3.el5_1 set to be updated
---> Package krb5-workstation.i386 0:1.6.1-17.el5_1.1 set to be updated
---> Package cairo.i386 0:1.2.4-3.el5_1 set to be updated
---> Package cups-libs.i386 1:1.2.4-11.14.el5_1.6 set to be updated
---> Package kernel-headers.i386 0:2.6.18-53.1.21.el5 set to be updated
---> Package e2fsprogs.i386 0:1.39-10.el5_1.1 set to be updated
---> Package dbus-x11.i386 0:1.0.0-6.3.el5_1 set to be updated
---> Package openoffice.org-math.i386 1:2.0.4-5.4.26 set to be updated
.
.
.
.
.
Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel-PAE i686 2.6.18-53.1.21.el5 updates 13 M
kernel-PAE-devel i686 2.6.18-53.1.21.el5 updates 4.7 M
Updating:
autofs i386 1:5.0.1-0.rc2.55.el5.3 updates 801 k
cairo i386 1.2.4-3.el5_1 updates 394 k
cups i386 1:1.2.4-11.14.el5_1.6 updates 2.7 M
cups-libs i386 1:1.2.4-11.14.el5_1.6 updates 181 k
dbus i386 1.0.0-6.3.el5_1 updates 468 k
dbus-devel i386 1.0.0-6.3.el5_1 updates 37 k
dbus-x11 i386 1.0.0-6.3.el5_1 updates 27 k
device-mapper-multipath i386 0.4.7-12.el5_1.4 updates 2.0 M
.
.
.
.
.
tk i386 8.4.13-5.el5_1.1 updates 888 k
tomcat5-jsp-2.0-api i386 5.5.23-0jpp.3.0.3.el5_1 updates 93 k
tomcat5-servlet-2.4-api i386 5.5.23-0jpp.3.0.3.el5_1 updates 150 k
tzdata noarch 2007k-2.el5 updates 753 k
util-linux i386 2.13-0.45.el5_1.1 updates 1.8 M
xorg-x11-drv-keyboard i386 1.1.0-3 updates 14 k
xorg-x11-server-Xnest i386 1.1.1-48.26.el5_1.5 updates 1.4 M
xorg-x11-server-Xorg i386 1.1.1-48.26.el5_1.5 updates 3.2 M
xorg-x11-server-Xvfb i386 1.1.1-48.26.el5_1.5 updates 1.6 M

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 84 Package(s)
Remove 0 Package(s)

Total download size: 312 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897

GPG key retrieval failed: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>


boneymtom 12-01-2009 06:39 PM

Fixed : gpg key retrival failed
 
Easy fix do a

yum update yum

This should get the right gppg key from the server and now can do a

yum update -y


All times are GMT -5. The time now is 09:06 PM.