Symptoms
Creating cache for Debian 3.1 EZ OS template leads to various errors saying f.e.
Unable to fetch file, server said '/debian/dists/stable/main/binary-i386/Packages.gz: No such file or directory'Cause
The reason is that Debian Etch is released and 'stable' in repositories configuration now points to 'etch' while Debian 3.1 is 'sarge'.
Resolution
To fix the problem 'stable' should be replaced with 'sarge' in Debian 3.1 OS template metadata.
Please look into /vz/template/debian/3.1/x86/config/os/default/repositories file and replace all 'stable' to 'sarge' to return 3.1 "sarge" functionality.
I.e. the default contents like this:
$DEB_SERVER/debian stable main contrib non-free $DEB_SERVER/debian-non-US stable/non-US main contrib non-free
$DEB_SERVER/debian-security stable/updates main contrib non-free
should be replaced with:
$DEB_SERVER/debian sarge main contrib non-free $DEB_SERVER/debian-non-US sarge/non-US main contrib non-free
$DEB_SERVER/debian-security sarge/updates main contrib non-free
Please note, that also /etc/apt/sources.list should be adjusted in all VEs based on Debian 3.1 OS template - 'stable' should be replaced with 'sarge'.