Yum Repository Problem

General support questions including new installations
CarlosPastorino
Posts: 2
Joined: 2013/04/17 22:08:16

Yum Repository Problem

Postby CarlosPastorino » 2013/04/17 22:25:43

Hello,

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:

Code: Select all

[base]
name=CentOS-$releasever - Base baseurl=http://vault.centos.org/4.9/os/$basearch/


and then executed:

Code: Select all

# yum install vim-enhanced


and the result was:

Code: Select all

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
http://vault.centos.org/4.9/os/x86_64/CentOS/RPMS/vim-enhanced-6.3.046-2.el4.1.x86_64.rpm: [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.

Cheers,

Carlos Pastorino

User avatar
TrevorH
Forum Moderator
Posts: 21184
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Yum Repository Problem

Postby TrevorH » 2013/04/17 22:42:20

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 vault.centos.org


I gather that pointing your repo file to the equivalent directory on http://archive.kernel.org/centos/ should help in the short term until the problem is fixed.

CarlosPastorino
Posts: 2
Joined: 2013/04/17 22:08:16

Re: Yum Repository Problem

Postby CarlosPastorino » 2013/04/18 14:35:01

Trevor, thank you for the tip! Will do as you suggested.

Carlos Pastorino