Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
Distribution: Prefer Slackware, Suse, CentOS and Redhat, and anything BUT windows!
Posts: 5
Rep:
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.