Can not create cache for CentOS 5 EZ template.

Article ID: 3464 
Last Review: Oct,6 2008
Author: Vitaly Filatov
Last updated by: system APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

Symptoms

Creating cache for CentOS 5 EZ template I am getting errors 'Package does not match checksum' like these:
Downloading Packages:
(1/2): perl-5.8.8-10.i386 100% |=========================|
http://mirror.centos.org/centos/5/os/x86_64/CentOS/perl-5.8.8-10.i386.rpm:
[Errno -1] Package does not match checksum
Trying other mirror.
(2/2): basesystem-8.0-5.1 100% |=========================|
http://mirror.centos.org/centos/5/os/x86_64/CentOS/basesystem-8.0-5.1.1.el5.centos.noarch.rpm:
[Errno -1] Package does not match checksum
Trying other mirror.
Error Downloading Packages:
perl - 4:5.8.8-10.i386: failure: CentOS/perl-5.8.8-10.i386.rpm from base0: [Errno 256]
No more mirrors to try.
basesystem - 8.0-5.1.1.el5.centos.noarch: failure: CentOS/basesystem-8.0-5.1.1.el5.centos.noarch.rpm from base0: [Errno 256]
No more mirrors to try.
ERROR: yum exited with code 1

Cause

CentOS changed their repository structure and as a result repository metadata is not valid for CentOS 5 template.

Resolution

Please clean repository metadata for affected OS template:
- for 32-bit CentOS 5 OS template:
# vzpkg clean centos-5-x86
- for 64-bit CentOS 5 OS template:
# vzpkg clean centos-5-x86_64


After that create OS template cache again:
# vzpkg create cache centos-5-x86
or
# vzpkg create cache centos-5-x86_64
Keywords: CentOS 5 EZ OS template cache


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields