problem in use yum -y install gcc

mhk67

New member
Joined
May 4, 2013
Messages
3
hello
this error show in use this command
Code:
yum -y install gcc
error:

Code:
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: addons

lsb_release -a :
Code:
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final
 
ok i searched in google and get answer
if you have problem similar me
edit resolv.conf file :
Code:
nano /etc/resolv.conf

and write this lines in to file and save it
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
 
Back
Top