Article ID: 123232, created on Oct 24, 2014, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo containers for Linux 4.6
  • Virtual Automation 6.0


OS template cache creation fails with a similar error message:

# vzpkg create cache debian-7.0-x86_64
Creation OS template cache for debian-7.0-x86_64 template
W: Failed to fetch  Unable to connect to
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error: /usr/bin/apt-get failed, exitcode=100


Unavailable repository is configured for the template, e.g:

# cat /vz/template/debian/7.0/x86_64/config/os/default/repositories
$DEB_SERVER/debian wheezy main contrib non-free
$DEB_SERVER/debian-security wheezy/updates main contrib non-free wheezy historical

In the example above "" is a custom repository, which is not available.

"$DEB_SERVER" variable is defined in "/etc/vztt/" file and by default is equal to:

 # grep DEB_SERVER  /etc/vztt/


  1. Delete the unavailable repositories from the configured list (e.g "/vz/template/debian/7.0/x86_64/config/os/default/repositories");

  2. Check that "$DEB_SERVER" is leading to an existing and available Debian repository.

  3. Update the template's metadata before another attempt on cache creation : "# vzpkg update metadata debian-7.0-x86_64 -r"

Additinal articles:

Cannot create/update OS template cache: 404 Not found

Search Words

unable to connect

Failed to fetch

failed to fetch

template cache

/usr/bin/apt-get failed

Some index files failed to download

Unable to connect to

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef 0c05f0c76fec3dd785e9feafce1099a9 0889ab60fa6494de107aa7338c3c38b6 319940068c5fa20655215d590b7be29b 36627b12981f68a16405a79233409a5e

Email subscription for changes to this article
Save as PDF