Article ID: 117936, created on Oct 14, 2013, last review on Jun 17, 2016

  • Applies to:
  • Operations Automation 5.4
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo containers for Linux 4.6
  • Virtuozzo hypervisor


It is not possible to create the OS template cache of Debian 5. The error 404 Not Found is reported:

    [root@pvc01 ~]# vzpkg create cache debian-5.0-x86_64
    Creation OS template cache for debian-5.0-x86_64 template
    Err lenny/main i386 Packages
      404  Not Found
    Err lenny/contrib i386 Packages
      404  Not Found
    Err lenny/non-free i386 Packages
      404  Not Found
    W: Failed to fetch  404  Not Found
    W: Failed to fetch  404  Not Found
    W: Failed to fetch  404  Not Found
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    Error: /usr/bin/apt-get failed, exitcode=100


By default, there is only one server defined for Debian packages to be used by Virtuozzo package management tools for fetching OS packages:

    [root@pvc01 ~]# grep DEB /etc/vztt/

This server stores the current and previous stable releases only, since these OS versions are officially supported. However, packages for older OS versions are not kept on the main server because those releases have reached End-of-Life.


In order to create the OS template cache for Debian 5 or any previous version, it is necessary to specify the proper server to fetch packages from and update the list of repositories of the affected EZ OS template. In the example below, the EZ OS template is debian-5.0-x86_64 - Debian 5.0 64-bit.

  1. Define the additional variable DEB_ARCHIVE in the file /etc/vztt/ that would point to the archive server.

    [root@pvc09 ~]# grep DEB /etc/vztt/
  2. Edit the list of repositories in the EZ OS template configuration file (for Debian 5.0 64-bit, the file is /vz/template/debian/5.0/x86_64/config/os/default/repositories), so finally it looks like:

    [root@pvc01 ~]# cat /vz/template/debian/5.0/x86_64/config/os/default/repositories
    $DEB_ARCHIVE/debian lenny main contrib non-free
    $DEB_ARCHIVE/debian-volatile lenny/volatile main contrib non-free
    $DEB_ARCHIVE/debian-security lenny/updates main contrib non-free
  3. Clean the information about the information from repositories:

    [root@pvc01 ~]# vzpkg clean debian-5.0-x86_64
  4. Create the OS template cache for Debian 5.0 x64:

    [root@pvc01 ~]# vzpkg create cache debian-5.0-x86_64

The similar operations are needed for other Debian releases which are not officially supported by Debian community anymore.

Note: For Debian 4.0, there is one known issue with creating the OS template cache due to the issue with a package name, described in this article: Impossible to create Debian 4.0 OS template cache on PVCfL 4.7.

Search Words

old version

failed created

Can not install packages

Internal error: 3501 : Can not install packages: ' vzpkg install -q 2667


old os release

EZ templates

create cache


old release


a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef 5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 0c05f0c76fec3dd785e9feafce1099a9 36627b12981f68a16405a79233409a5e ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e 614fd0b754f34d5efe9627f2057b8642

Email subscription for changes to this article
Save as PDF