LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-06-2008, 07:14 AM   #1
triley
Member
 
Registered: Oct 2003
Posts: 74

Rep: Reputation: 15
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')>
 
Old 06-06-2008, 10:24 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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?
 
Old 10-08-2008, 12:26 PM   #3
tagky
LQ Newbie
 
Registered: Jan 2004
Location: Nicholasville, KY
Distribution: Prefer Slackware, Suse, CentOS and Redhat, and anything BUT windows!
Posts: 5

Rep: Reputation: 0
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 View Post
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')>
 
Old 12-01-2009, 06:39 PM   #4
boneymtom
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Revoking GPG key with only passphrase and public key djib Linux - Security 2 03-13-2007 03:20 AM
can see gpg key in apt-key, still can't update Dan63043 Ubuntu 2 09-25-2006 11:35 AM
public.gpg.key: import read failed error ynbfung Linux - Software 2 05-02-2006 01:46 PM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM
what is gpg-key salahuddin_66 Slackware 3 05-18-2004 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration