Article ID: 3464, created on Dec 5, 2007, last review on May 11, 2014

  • Applies to:
  • Virtuozzo containers for Linux

Symptoms

I am trying to create a cache for the CentOS 5 EZ template, but I get "Package does not match checksum" errors, 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 has changed their repository structure, and as a result, repository metadata is not valid for the CentOS 5 template.

Resolution

If very outdated EZ templates are installed on the Hardware Node, please run the "vzup2date -z" command before taking the following actions, and download the latest versions of EZ templates.

Please clean the repository metadata for the affected OS template, and after that, remove the old cache and create a new OS template cache:

for a 32-bit CentOS 5 OS template:
# vzpkg clean centos-5-x86
# vzpkg remove cache centos-5-x86
# vzpkg create cache centos-5-x86


for a 64-bit CentOS 5 OS template:
# vzpkg clean centos-5-x86_64
# vzpkg remove cache centos-5-x86_64
# vzpkg create cache centos-5-x86_64

e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF