Yum Repository Problem

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

Yum Repository Problem

Post by 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]
[base]
name=CentOS-$releasever - Base baseurl=http://vault.centos.org/4.9/os/$basearch/
[/code]

and then executed:

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

and the result was:

[code]
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.
[/code]

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: 23187
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Yum Repository Problem

Post by 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

[quote]
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
[/quote]

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

Post by CarlosPastorino » 2013/04/18 14:35:01

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

Carlos Pastorino

Post Reply