Article ID: 3035, created on Apr 28, 2009, last review on Apr 22, 2012

  • Applies to:
  • Virtuozzo containers for Linux

Síntomas

La utilidad 'vzpkg' devuelve el siguiente error cuando intento usarla:
# vzpkg fetch centos-5-x86
E: The method driver
/usr/lib/apt/methods/%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3
f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f could not be found.
ERROR: Can not load mirrorlist(s):
%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3
f%3f%3f%3f%3f%3f%3f%3f
ERROR: Can not get yum configs for centos-5-x86 OS template

Resolución

Puede resolver este problema usando esta corrección para el archivo /usr/share/vztt/functions en un servidor Parallels Virtuozzo Containers:
--- /usr/share/vztt/functions.0 2007-11-02 12:34:04.000000000 +0300
+++ /usr/share/vztt/functions   2007-11-02 12:34:33.000000000 +0300
@@ -644,3 +644,3 @@
                i=${i//&/%26}
-               i=${i//\?/%3f}
+               i=${i//[?]/%3f}
                mirrorlist="$mirrorlist


e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF