Page 1 of 1

Yum Repository Problem

Posted: 2013/04/17 22:25:43
by CarlosPastorino

I would like to report a problem in the Vault Repository. I know CentOS 4.9 is an ancient OS, but other people may be experiencing this, so I decided to report anyway.

I updated /etc/yum.repos.d/CentOS-Base.repo to contain the following:

name=CentOS-$releasever - Base baseurl=$basearch/

and then executed:

[code]# yum install vim-enhanced[/code]

and the result was:

Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vim-enhanced to pack into transaction set.
vim-enhanced-6.3.046-2.el 100% |=========================| 686 kB 00:06 [Errno -1] Header is not complete.

As you can see, yum downloaded the full package (686 kB) and not the header, which is about 7.4 kB. Hence the error "Header is not complete", because it didn't download the header.


Carlos Pastorino

Yum Repository Problem

Posted: 2013/04/17 22:42:20
by TrevorH
Yes, it's a known problem. I quote from a conversation on IRC yesterday with one of the developers

yum in CentOS-4 uses the older yum-arch generated .hdr files, which are essentially parts of the rpm extracted as-is
now, these files are binary and delivered as-is, but yum then tries to be a bit smart and does a byte range offset get for the rpms
and we turned off byte-range on

I gather that pointing your repo file to the equivalent directory on should help in the short term until the problem is fixed.

Re: Yum Repository Problem

Posted: 2013/04/18 14:35:01
by CarlosPastorino
Trevor, thank you for the tip! Will do as you suggested.

Carlos Pastorino