LinuxQuestions.org
Visit Jeremy's Blog.
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 10-24-2008, 07:04 AM   #1
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 15
Cannot Install Software on CentOS 5


Hey Everyone,

I just did my first Linux install last week of CentOS 5, and I have been trying to install LAMP on it, but to no avail. Whenever I choose to open Applications->Add/Remove Software, I always get an error that says the following:

Unable to Retrieve Software Information:
Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

I read online somewhere that somebody suggested going into /etc/yum.repos.d/CentOS-Base.repo and changing the # sign from baseurl to mirrorlist. I tried that and restarted the system, but that didn't solve the problem either. If anybody can help me out with this I would greatly appreciate it. Thanks!
 
Old 10-24-2008, 09:00 AM   #2
vamsi_k
Member
 
Registered: Aug 2008
Posts: 66

Rep: Reputation: 18
try this commands once :

# setenforce 0 ( disables selinux. changes get modified only after rebooting the system.)


touch /.autorelabel

# yum clean all
# yum makecache
# yum update

#vi /etc/yum.repos.d/CentOS-Media.repo

Modify it to enabled=0


next :

yum -v update --disablerepo=contrib



and check once.

or else if u have idea about the packages that are required for ur installation process u can get from centos installation dvd that are in packages folder.

Last edited by vamsi_k; 10-24-2008 at 09:05 AM.
 
Old 10-24-2008, 09:05 AM   #3
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Rep: Reputation: 30
Quote:
Originally Posted by Ascendancy5 View Post
Hey Everyone,

I just did my first Linux install last week of CentOS 5, and I have been trying to install LAMP on it, but to no avail. Whenever I choose to open Applications->Add/Remove Software, I always get an error that says the following:

Unable to Retrieve Software Information:
Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

I read online somewhere that somebody suggested going into /etc/yum.repos.d/CentOS-Base.repo and changing the # sign from baseurl to mirrorlist. I tried that and restarted the system, but that didn't solve the problem either. If anybody can help me out with this I would greatly appreciate it. Thanks!
these may help you, have a look here
http://fedoraforum.org/forum/showthread.php?t=169831
http://forums.fedoraforum.org/archiv.../t-195001.html
do let us know ur feedback. thanks.
 
Old 10-28-2008, 06:42 AM   #4
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
When I tried to run the yum update command, I got this from the terminal,

Code:
http://mirror.centos.org/centos/5/os/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
 
Old 10-30-2008, 07:01 AM   #5
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Just as an update, I did a complete reformat of the HDD and installed CentOS again from scratch as a server, not including any desktop GUI. I ran from the command line "yum update", and I got the error message below:

Code:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
error was [Errno 4] IOError: 
<urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot retrieve repository metadata (repomd.xml) for 
repository: base. Please verify its path and try again.
I don't know if this helps at all, but that seems to be the same error message as before. I could try to reformat again, but I don't think anything is going wrong during the install.
 
Old 10-30-2008, 01:39 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Are you behind a proxy?
 
Old 10-31-2008, 05:52 AM   #7
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
I actually think I am. I am setting this system up in my High School, as I am taking an independent study to learn more about Linux, but I have absolutely no prior knowledge of it... I believe my High School runs through an ISA server, but I don't know where I need to go in Linux to tell it that. I already configured Firefox in the network settings, so I can get out to the internet through that, but I don't know where else I need to configure the proxy.
 
Old 10-31-2008, 01:06 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
You have to do two things(as far as I remember).

1.export http_proxy=[my actual proxy server]

2. edit your yum.conf adding: proxy=[ip addressort]

You can look in man yum.conf to see more.
 
Old 11-12-2008, 06:43 AM   #9
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
I tried editing my yum.conf file and changing the proxy to my IP, but it didn't seem to work. After that I removed the proxy from the yum.conf file and went into System->Preferences->Network Proxy and set all of those values to what I needed. I then tried a yum update again and it worked!!!! I think I have this problem all figured out, so thanks for every bodies help along the way!
 
  


Reply

Tags
cant, centos, install, software


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
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
[SOLVED] which one to install centOS 4 or centOS 5 ? Pls HELP !!! vikas027 Linux - Newbie 2 05-13-2007 06:04 AM
[centos] yum and software updater pcandpc Linux - Distributions 1 04-26-2007 06:44 PM
uninstalling application or software on CentOS dojiep Linux - Newbie 2 12-02-2006 03:36 PM
Any good CD\DVD Software for RHEL4 (CentOS) ? aliebel Linux - Software 1 02-12-2006 04:59 PM


All times are GMT -5. The time now is 06:45 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