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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
08-10-2008, 01:05 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Rep:
|
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
|
|
|
|
08-10-2008, 01:26 AM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
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?
|
|
|
|
08-10-2008, 02:00 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
08-10-2008, 02:11 AM
|
#4
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
Normally either the mirrorlist or the baseurl is comment out (starts with #). Having both active may be causing problems.
|
|
|
|
08-10-2008, 02:12 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by lazlow
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!
|
|
|
|
08-10-2008, 02:13 AM
|
#6
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
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 '.
|
|
|
|
08-10-2008, 02:17 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
08-10-2008, 02:19 AM
|
#8
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
NOT "yum list", 'yum repolist"
|
|
|
|
08-10-2008, 02:20 AM
|
#9
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
I'd try commenting out the mirrorlist and uncommenting the baseurl, since I'd guess the mirror list is at fault
|
|
|
|
08-10-2008, 02:25 AM
|
#10
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by billymayday
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.
|
|
|
|
08-10-2008, 02:26 AM
|
#11
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
yum clean all
|
|
|
|
08-10-2008, 02:28 AM
|
#12
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by lazlow
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.
|
|
|
|
08-10-2008, 02:35 AM
|
#13
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
I still like to see yum repolist.
Do you have any yum aliases set?
Are you short on disk space on /var ?
|
|
|
|
08-10-2008, 02:44 AM
|
#14
|
|
LQ Newbie
Registered: Aug 2008
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by lazlow
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
|
|
|
|
08-10-2008, 02:52 AM
|
#15
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:17 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|