LinuxQuestions.org
Review your favorite Linux distribution.
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 08-10-2008, 01:05 AM   #1
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Rep: Reputation: 0
Yum IOError


Hey, I have a VPS server I use for a webserver and I do yum and it saids

root@fast [~]# yum install nmap
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found


I'm getting this I tried updating the /etc/yum.repos.d/CentOS-Base.repo file but no luck.

Any ideas? I'm pretty bad with linux. I have some knowledge you know basic things but nothing advanced! I'm running the latest cPanel and wget works fine.

Thank You
 
Old 08-10-2008, 01:26 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What distro/version are you running?

Where did this repo file come from?

Well looking at http://mirror.dulug.duke.edu/pub/yum...edhat/updates/ I'd suggest that this is a seriously old repository (RH7.1 through 9)

What repos do you have setup in /etc/yum.repos.d?
 
Old 08-10-2008, 02:00 AM   #3
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Theres two files.
CentOS-Base.repo

Code:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[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-CentOS-5

#released updates 
[updates]
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-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releaseverz - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
CentOS-Media.repo



I manually updated the CentOS-Base.repo but it didn't even seem like it took affect.
 
Old 08-10-2008, 02:11 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Normally either the mirrorlist or the baseurl is comment out (starts with #). Having both active may be causing problems.
 
Old 08-10-2008, 02:12 AM   #5
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
Normally either the mirrorlist or the baseurl is comment out (starts with #). Having both active may be causing problems.
I Tried it without it commented first! It didn't help its still looking at the old mirrors!
 
Old 08-10-2008, 02:13 AM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
I THINK you HAVE to have one or the other commented out(both cannot be active in order for it to work). Could you also post the results of " yum repolist '.
 
Old 08-10-2008, 02:17 AM   #7
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
root@fast [~]# yum list
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

Code:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[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-CentOS-5

#released updates 
[updates]
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-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releaseverz - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
That is what I have ATM and its still the same error

Last edited by Styles; 08-10-2008 at 02:19 AM.
 
Old 08-10-2008, 02:19 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
NOT "yum list", 'yum repolist"
 
Old 08-10-2008, 02:20 AM   #9
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd try commenting out the mirrorlist and uncommenting the baseurl, since I'd guess the mirror list is at fault
 
Old 08-10-2008, 02:25 AM   #10
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
I'd try commenting out the mirrorlist and uncommenting the baseurl, since I'd guess the mirror list is at fault

root@fast [~]# yum install
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found


Still

I think its in the cache.. how can I upate it? rifk.
 
Old 08-10-2008, 02:26 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
yum clean all
 
Old 08-10-2008, 02:28 AM   #12
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
yum clean all

root@fast [~]# yum clean all
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
Error - /var/cache/yum/base/header.info cannot be found
Please run yum in non-caching mode to correct this header.
 
Old 08-10-2008, 02:35 AM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
I still like to see yum repolist.

Do you have any yum aliases set?

Are you short on disk space on /var ?
 
Old 08-10-2008, 02:44 AM   #14
Styles
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
I still like to see yum repolist.

Do you have any yum aliases set?

Are you short on disk space on /var ?
I don't think so its a 100gb drive. idk if yum alias is set haha
 
Old 08-10-2008, 02:52 AM   #15
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Ok, IF some piece of hardware has a slight malfunction it can send an error to the log every second. It does not take very long to fill up a lot of space when this happens (please check /var). IF var is out of space and clean all removes header.info the space may be refilled before the new header.info can be written.

Assuming the machine is yours and you have not set an alias(from your reply), it is probably not the issue.

I would still like to see a yum repolist.
 
  


Reply

Tags
error, found, http, ioerror, yum


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
Help!! Yum Ioerror? sean_zhang Linux - Software 2 01-12-2009 07:15 PM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 01:08 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM


All times are GMT -5. The time now is 04:32 AM.

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