Article ID: 120674, created on Mar 22, 2014, last review on May 9, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor

Symptoms

Plesk template cannot be installed to a container with error No package mod_python available:

# vzpkg install 100 pp11
Loaded plugins: rpm2vzrpm
pp10-php530                                      |  951 B     00:00
pp10-php531                                      |  951 B     00:00
pp11-antivirus0                                  |  951 B     00:00
pp11-antivirus1                                  |  951 B     00:00
pp11.5-mysql5.50                                 |  951 B     00:00
pp11.5-mysql5.51                                 |  951 B     00:00
pp112                                            |  951 B     00:00
Setting up Install Process
No package mod_python available.
Error: Package is not found
Error: /usr/share/vzyum/bin/yum failed, exitcode=1

Cause

Package mod_python is not found on repositories & mirrorlists configured for the template.

Resolution

Make sure mod_python is present on repositories configured for OS template which was used for container creation. If necessary, add proper repository to the file /vz/template/%distribution%/%release%/%arch%/config/os/default/repositories. Replace %distribution%, %release% and %arch% with real values applicable to your case. To find out which template was used for container creation you can execute following command:

# vzlist 100 -Ho ostemplate
centos-6-x86_64

Example of repositories file contents:

# cat /vz/template/centos/6/x86_64/config/os/default/repositories
http://mirror.yandex.ru/centos/6/os/x86_64/
http://mirror.yandex.ru/centos/6/updates/x86_64/

NOTE: mirrorlist file should contain links to mirrorlists, not to repositories, and vice-versa.

Example of mirrorlist file contents:

# cat /vz/template/centos/6/x86_64/config/os/default/mirrorlist
$SW_SERVER/download/mirrors/centos-6
$SW_SERVER/download/mirrors/updates-released-ce6
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates

Search Words

cannot install plesk

No package mod_python available

empty mirrorlist and repositories

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 0dd5b9380c7d4884d77587f3eb0fa8ef c62e8726973f80975db0531f1ed5c6a2

Email subscription for changes to this article
Save as PDF