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! |
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. |
Quote:
http://fedoraforum.org/forum/showthread.php?t=169831 http://forums.fedoraforum.org/archiv.../t-195001.html do let us know ur feedback. thanks. |
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')> |
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 |
Are you behind a proxy?
|
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.
|
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. |
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. |