LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-04-2008, 08:42 PM   #1
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Rep: Reputation: 15
cannot yum update


Good day to all linux experts

Could anyone help me I'm trying to update my linux CentOS 4 for my squid proxy server setup but I can't update it through 'yum -y update'. I tried yum clean all then yum -y update then again yum update all but still no luck I got this error messages...


Setting up Update Process
Setting up repositories
http://mirror.centos.org/centos/4/up...ta/repomd.xml: [Errno 14] HTTP Error 400: Bad Request
Trying other mirror.
Cannot open/read repomd.xml file for repository: update
failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try

My firewall and SELinux are disable as of now..

Thanks in advance

Best Regards
 
Old 02-04-2008, 09:01 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
The following web page has a typical centos 4 yum repository list for yum.conf

http://fortmunir.wordpress.com/2007/...entos-yumconf/

Perhaps you could use these and any special repositories you enabled to run yum.
 
Old 02-04-2008, 10:06 PM   #3
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks for the reply ehawk could you please be specific of what I am going to do that file.
What I did is I rename the yum.conf to yum_orig.conf for backup purposes and then I make another file named yum.conf and the content is what you refer me at this site http://fortmunir.wordpress.com/2007/...entos-yumconf/, I even edited the file and uncommented the baseurl part

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
protect=1

#released updates
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
protect=1

but still no luck, now I got this new error messages

Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Update Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
 
Old 02-04-2008, 10:59 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you trying to connect through a proxy? If so, can you circumvent it somehow?
 
  


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
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-03-2010 12:42 AM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 03:03 AM
When i update my system with yum update Yihya Linux - Newbie 1 02-22-2006 10:33 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 01:48 PM
trying to update via yum and update fails lnxmacusr Fedora 4 12-17-2004 04:12 PM


All times are GMT -5. The time now is 10:27 AM.

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