LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2011, 03:59 AM   #1
vivendi
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Rep: Reputation: 0
yum not working on centos 5


I have a VPS and i wanted to install some packages with yum. But for some reason i'm getting errors when i try to do that. I also have no idea how to fix this.

This is the error that i'm getting when i try to do a yum update. (I'm getting the same error for all yum commands)

Quote:
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: base
I checked my resolv.conf file. It had the Google DNS in it 8.8.4.4 8.8.8.8, but i changed that to OpenDNS:
Quote:
ameserver 208.67.220.220
nameserver 208.67.222.222
(that's all there is in resolv.conf).

I also tried:
yum clean all

It cleaned, but i still can't use yum to update or install anything...


Any other ideas that i could try??
Please bear in mind that i'm a complete newbie (so don't get to technical ) and i only have access to the terminal.
 
Old 11-17-2011, 04:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you've got some clear gaps in your troubleshooting there... who cares about yum if it's a DNS issue? Is DNS working? if you ping a remote site, does it resolve? then, what sites is yum trying to resolve? look in /etc/yum.repos.d/*
 
Old 11-17-2011, 04:53 AM   #3
vivendi
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Original Poster
Rep: Reputation: 0
I forgot to add, but i tried to ping a site which didn't work. I also tried the host command and that didn't work either.

So that's probably the reason i can't access any mirrors, since i can't access any internet address at all...
 
Old 11-17-2011, 04:57 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
right, so go fix that, and yum will work. Super.
 
0 members found this post helpful.
Old 11-17-2011, 05:44 AM   #5
vivendi
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
right, so go fix that, and yum will work. Super.
Having a shitty day? Wanna talk about it..?


Anyway i obviously have no clue how to fix this, anyone else that can actually point me in the right direction?
 
Old 11-17-2011, 05:45 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
so this is just basic network troubleshooting. can you ping your default gateway etc?
 
Old 11-17-2011, 05:51 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by vivendi View Post
I forgot to add, but i tried to ping a site which didn't work. I also tried the host command and that didn't work either.

So that's probably the reason i can't access any mirrors, since i can't access any internet address at all...
If you dont want to use Google's DNS, contact your admin or ISP to help you find your actual DNS server which can help you with name resolution as the one which you are using doesn't seems much helping in your case.

Or a long procedure is configure your own DNS

Or else continue with
Code:
8.8.8.8
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 05:15 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 09:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 01:56 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 05:41 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 03:36 AM


All times are GMT -5. The time now is 10:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration