При попытке установить zend server (6.3) с php5.3 на debian 7.x (wheezy) с использованием поваренной книги zendserver для Chef, я получаю следующую ошибку: (должен быть php5.3 из-за старого кода в приложении PHP)

==> default: [2014-12-13T16:36:23+00:00] INFO: Starting install for package zend-server-php-5.3
==> default:
==> default: ================================================================================
==> default: Error executing action `install` on resource 'apt_package[zend-server-php-5.3]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Some packages could not be installed. This may mean that you have
==> default: requested an impossible situation or if you are using the unstable
==> default: distribution that some required packages have not yet been created
==> default: or been moved out of Incoming.
==> default: The following information may help to resolve the situation:
==> default: The following packages have unmet dependencies:
==> default:  zend-server-php-5.3 : Depends: zend-server-php-5.3-common (= 6.3.0+b41) but it is not going to be installed
==> default:                        Depends: libapache2-mod-php-5.3-zend-server(>= 5.3.21) but it is not going to be installed
==> default: STDERR: E: Unable to correct problems, you have held broken packages.
==> default: ---- End output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: Ran apt-get -q -y install zend-server-php-5.3=6.3.0+b41 returned 100
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/zendserver/recipes/default.rb
==> default:
==> default:  65: package package_name do
==> default:  66:   :install
==> default:  67:   notifies :restart, 'service[zend-server]', :immediate
==> default:  68: end
==> default:  69:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/zendserver/recipes/default.rb:65:in `from_file'
==> default:
==> default: apt_package("zend-server-php-5.3") do
==> default:   action :install
==> default:   retries 0
==> default:   retry_delay 2
==> default:   default_guard_interpreter :default
==> default:   package_name "zend-server-php-5.3"
==> default:   version "6.3.0+b41"
==> default:   timeout 900
==> default:   cookbook_name :zendserver
==> default:   recipe_name "default"
==> default: end
==> default: [2014-12-13T16:36:23+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2014-12-13T16:36:23+00:00] ERROR: Running exception handlers
==> default: [2014-12-13T16:36:23+00:00] ERROR: Exception handlers complete
==> default: [2014-12-13T16:36:23+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-12-13T16:36:23+00:00] ERROR: apt_package[zend-server-php-5.3]
 (zendserver::default line 65) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Some packages could not be installed. This may mean that you have
==> default: requested an impossible situation or if you are using the unstable
==> default: distribution that some required packages have not yet been created
==> default: or been moved out of Incoming.
==> default: The following information may help to resolve the situation:
==> default:
==> default: The following packages have unmet dependencies:
==> default:  zend-server-php-5.3 : Depends: zend-server-php-5.3-common (= 6.3.0+b41) but it is not going to be installed
==> default:                        Depends: libapache2-mod-php-5.3-zend-server(>= 5.3.21) but it is not going to be installed
==> default: STDERR: E: Unable to correct problems, you have held broken packages.
==> default: ---- End output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: Ran apt-get -q -y install zend-server-php-5.3=6.3.0+b41 returned 100
==> default: [2014-12-13T16:36:23+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

Похоже, эта команда выполняется:
$ apt-get -q -y install zend-server-php-5.3=6.3.0+b41

И это дает такой вывод:

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 zend-server-php-5.3 : Depends: zend-server-php-5.3-common (= 6.3.0+b41) but it is not going to be installed
                       Depends: libapache2-mod-php-5.3-zend-server (>= 5.3.21) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Я застрял здесь и не знаю, что делать. Кто-нибудь может мне помочь, пожалуйста?

1 ответ1

1

не слишком уверен, что это все еще применимо, но у нас возникли серьезные проблемы при установке сервера zend 5.3 на wheezy. Мы запустили его после долгих размышлений, но в итоге оказались в ситуации, когда библиотеки SSL были недействительными и должны были запускать apache с сайтами, не относящимися к ssl!

Если вы все еще ищете решение, я бы посоветовал добавить их в ваш /etc/apt/soruces.list и установить стек squeeze php 5.3 (он работает довольно хорошо).

deb http://ftp.us.debian.org/debian/ squeeze основной вклад несвободный deb-src http://ftp.us.debian.org/debian/ squeeze основной взнос несвободный

НТН

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .