LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-09-2012, 09:22 AM   #1
C3phalex1n_0x
LQ Newbie
 
Registered: Feb 2012
Location: Iran, republic of
Distribution: Mepis
Posts: 15

Rep: Reputation: Disabled
error can not reterive when i'm using yum in centos


Hi Guys,
I'm a new member this site.
Guys i have a problem in centos.
when i'm using yum for installing a package in centos release 6.6.
in output command appear me a error "Cannot retrieve repository metadata (repomd.xml)" and can't installing package!
Guys i'm how to solve this problem?!
What's suggestion?!
 
Old 12-09-2012, 09:26 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
welcome to the LQ

i suggest yum clean all
then yum check-update, see what will happen
 
Old 12-09-2012, 09:33 AM   #3
C3phalex1n_0x
LQ Newbie
 
Registered: Feb 2012
Location: Iran, republic of
Distribution: Mepis
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi router, tnx for wellcome...
I've run this command. and Nothing happened
see output : http://www.4myup.com/images/59862125870686470327.jpg

Last edited by C3phalex1n_0x; 12-09-2012 at 09:35 AM.
 
Old 12-09-2012, 09:40 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
this is issue with your DNS please change
nameserver 8.8.8.8 in /etc/resolv.conf

and retry again
 
Old 12-09-2012, 09:58 AM   #5
C3phalex1n_0x
LQ Newbie
 
Registered: Feb 2012
Location: Iran, republic of
Distribution: Mepis
Posts: 15

Original Poster
Rep: Reputation: Disabled
i opened this file /etc/resolv.conf
but this file was empety.. however i'm added this description in this file, nameserver 8.8.8.8 and saved.
but problem not solved.
i'm confused.
 
Old 12-09-2012, 10:01 AM   #6
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
if the file empty mean you have problem with your internet
mighbe you also dont have ip assign for that centos

execute this , change eth0 to your own device

Code:
dhclient eth0
 
1 members found this post helpful.
Old 12-09-2012, 10:14 AM   #7
C3phalex1n_0x
LQ Newbie
 
Registered: Feb 2012
Location: Iran, republic of
Distribution: Mepis
Posts: 15

Original Poster
Rep: Reputation: Disabled
OMG thanks routers for helping...
now it works correctly.
 
  


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
[SOLVED] Centos 5 Error :- -bash: yum: command not found sachinsud Linux - Server 56 06-21-2012 07:41 PM
cannot check for updates using yum in centos,gives unusual error SarahGurung Linux - Newbie 7 04-04-2012 12:44 AM
CentOS 5.2 yum repository error - Please help tezarin Linux - Software 7 01-07-2009 12:18 PM
error yum centos 5 crosswing Linux - Distributions 1 04-24-2007 03:34 PM


All times are GMT -5. The time now is 04:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration