LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 03:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 03: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, 03:57 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, so go fix that, and yum will work. Super.
 
0 members found this post helpful.
Old 11-17-2011, 04: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, 04:45 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
so this is just basic network troubleshooting. can you ping your default gateway etc?
 
Old 11-17-2011, 04:51 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
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



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 04:15 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 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
Open Source Consulting | Domain Registration