Unable to use YUM

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Opeio
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Mar 01, 2011 4:26 pm

Unable to use YUM

Post by Opeio »

OS: Centos 5.5

I get this error.

Code: Select all

[root@atlanta-quad293-i-4 ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=addons error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: addons
when ive looked VIA google people said this could be a cause.
In my case turned out that the machine, which was a nameserver on a restricted subnet just for nameservers, was blocked at the firewall from getting a translation address for external commo. As soon as that was permitted, yum worked fine.
Opeio
New to forums
New to forums
Posts: 6
Joined: Tue Mar 01, 2011 4:26 pm

Re: Unable to use YUM

Post by Opeio »

unable to find the edit button.

I ran a netstat -rn and none have a gateway

Code: Select all

[root@atlanta-quad293-i-4 ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
64.XX.XXX.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.XXX.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         64.XX.XXX.XXX   0.0.0.0         UG        0 0          0 eth0

here is the contents of my

/etc/resolv.conf

Code: Select all

search hsd1.wa.comcast.net
Any help would be appreciated as i have never encountered this error with my other host
Opeio
New to forums
New to forums
Posts: 6
Joined: Tue Mar 01, 2011 4:26 pm

Re: Unable to use YUM

Post by Opeio »

Im trying more stuff just to check to make sure i can provide as much information as possible.

Firewall is not running

Code: Select all

[root@atlanta-quad293-i-4 ~]# service iptables status
Firewall is stopped.

Opeio
New to forums
New to forums
Posts: 6
Joined: Tue Mar 01, 2011 4:26 pm

Re: Unable to use YUM

Post by Opeio »

Also its not just yum, i believe its something along the lines of me not being able to do any outbound things. IE Ping/wget etc.
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Unable to use YUM

Post by Edge100x »

It looks like your resolv.conf is invalid. Try this command:

Code: Select all

echo 128.95.120.1 > /etc/resolv.conf
Opeio
New to forums
New to forums
Posts: 6
Joined: Tue Mar 01, 2011 4:26 pm

Re: Unable to use YUM

Post by Opeio »

Edge100x wrote:It looks like your resolv.conf is invalid. Try this command:

Code: Select all

echo 128.95.120.1 > /etc/resolv.conf
I get this
[root@atlanta-quad293-i-4 ~]# echo 128.95.120.1 > /etc/resolv.conf
[root@atlanta-quad293-i-4 ~]#
Attachments
host.png
error putty
(39.41 KiB) Downloaded 146 times
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Unable to use YUM

Post by Edge100x »

That's what you should see, yes. Your applications (including Yum) should work properly now. :)
Opeio
New to forums
New to forums
Posts: 6
Joined: Tue Mar 01, 2011 4:26 pm

Re: Unable to use YUM

Post by Opeio »

Edge100x wrote:It looks like your resolv.conf is invalid. Try this command:

Code: Select all

echo 128.95.120.1 > /etc/resolv.conf
Well after a few seconds of fiddling around it appears it was the resolv.conf what i ended up doing was.


I added "nameserver" prior to the ip you provided.

Code: Select all

search hsd1.wa.comcast.net
nameserver 128.95.120.1
Just for future reference for me since im still kind of new to this process where did you get that IP from?


Note*
Edge100x wrote:That's what you should see, yes. Your applications (including Yum) should work properly now. :)
It didnt work after that it only started after i added the nameserver to the resolv.conf but you lead me in the right direction :) thnx
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Unable to use YUM

Post by Edge100x »

Dang nab it, you're right, I forgot the "nameserver" part. You'd think that after editing /etc/resolv.conf so many times, I'd get it right every time..

That IP is one of the University of Washington name servers, which I've been using myself for over 10 years, and it is very reliable. You could also use the InterNAP name servers in Atlanta, if you'd like. They are:

64.94.1.1
64.94.1.33
Post Reply