LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot yum update (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-yum-update-618714/)

Rainel 02-04-2008 07:42 PM

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

ehawk 02-04-2008 08:01 PM

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.

Rainel 02-04-2008 09:06 PM

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

billymayday 02-04-2008 09:59 PM

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


All times are GMT -5. The time now is 06:18 PM.