Page 1 of 1

CentOS 4.7 Yum Updates Failing -- [Errno -1] Header is not complete.

Posted: 2009/05/08 06:57:23
by antofthy
I have a number of machines runing CentOS 4.7

Yes I know they are old but I can't upgrade them for a couple of months yet.

however for the last month or so all yum updates are failing with
[Errno -1] Header is not complete.
Trying other mirror.

It does not matter which mirror I use, weather I use the mirrorlist or the baseurl. They all say the same thing.

For example....
[code]>>>prompt>>> yum update
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel to pack into transaction set.
kernel-2.6.9-78.0.22.EL.i 100% |=========================| 12 MB 00:20
http://ftp.swin.edu.au/centos/4.7/updates/i386/RPMS/kernel-2.6.9-78.0.22.EL.i686.rpm: [Errno -1] Header is not complete.
Trying other mirror.
kernel-2.6.9-78.0.22.EL.i 100% |=========================| 12 MB 00:16
http://centos.mirror.aussiehq.net.au/4.7/updates/i386/RPMS/kernel-2.6.9-78.0.22.EL.i686.rpm: [Errno -1] Header is not complete.
Trying other mirror.
ftp://ftp.oss.eznetsols.org/linux/centos/4.7/updates/i386/RPMS/kernel-2.6.9-78.0.22.EL.i686.rpm: [Errno 4] IOError: [Errno ftp error] [Errno ftp error] 502 Command REST not allowed by policy.
Trying other mirror.
kernel-2.6.9-78.0.22.EL.i 100% |=========================| 12 MB 00:14
http://mirror.3fl.net.au/pub/centos/4.7/updates/i386/RPMS/kernel-2.6.9-78.0.22.EL.i686.rpm: [Errno -1] Header is not complete.
Trying other mirror.
kernel-2.6.9-78.0.22.EL.i 100% |=========================| 12 MB 00:25
http://mirror.primusdatacentre.com.au/centos/4.7/updates/i386/RPMS/kernel-2.6.9-78.0.22.EL.i686.rpm: [Errno -1] Header is not complete.
Trying other mirror.
kernel-2.6.9-78.0.22.EL.i 100% |=========================| 12 MB 00:01
http://mirror.aarnet.edu.au/pub/centos/4.7/updates/i386/RPMS/kernel-2.6.9-78.0.22.EL.i686.rpm: [Errno -1] Header is not complete.
Trying other mirror.
....and so on....
[/code]
I manually downloaded that first package kernel-2.6.9-78.0.22.EL.i686.rpm and installed it fine using RPM.

The problem for "yum update" persists with the very next package perl-DBD-MySQL-4.006-1.el4.centos.i386.rpm.

So I manually downloaded that but get dependency faults

[code]>>>prompt>>> rpm -Uhv http://mirror.centos.org/centos/4.7/centosplus/i386/RPMS/perl-DBD-MySQL-4.006-1.el4.centos.i386.rpm
Retrieving http://mirror.centos.org/centos/4.7/centosplus/i386/RPMS/perl-DBD-MySQL-4.006-1.el4.centos.i386.rpm
error: Failed dependencies:
perl(:MODULE_COMPAT_5.8.8) is needed by perl-DBD-MySQL-4.006-1.el4.centos.i386
[/code]

Can anyone help me solve my problem?

CentOS 4.7 Yum Updates Failing -- [Errno -1] Header is not c

Posted: 2009/05/08 13:14:33
by AlanBartlett
Hmm. Will you please try --

[code]
[b]yum clean all
yum update kernel\*[/b]
[/code]
If that update proceeded correctly, now try the global update --

[code]
[b]yum update[/b]
[/code]