LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot Install Software on CentOS 5 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-install-software-on-centos-5-a-678790/)

Ascendancy5 10-24-2008 07:04 AM

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!

vamsi_k 10-24-2008 09:00 AM

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.

harry2006 10-24-2008 09:05 AM

Quote:

Originally Posted by Ascendancy5 (Post 3320714)
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.

Ascendancy5 10-28-2008 06:42 AM

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


Ascendancy5 10-30-2008 07:01 AM

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.

lazlow 10-30-2008 01:39 PM

Are you behind a proxy?

Ascendancy5 10-31-2008 05:52 AM

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.

lazlow 10-31-2008 01:06 PM

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 address:port]

You can look in man yum.conf to see more.

Ascendancy5 11-12-2008 06:43 AM

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!


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