Results 1 to 6 of 6

Thread: Dependency problem installing Zend Community Server on Ubuntu 12.04

  1. #1

    Question Dependency problem installing Zend Community Server on Ubuntu 12.04

    Edit: Seems this is a problem with zend server repository, and they will be working to fix it after 12.04 is officially released (after beta). So hopefully it would be fixed, but anyway I would appreciate if anyone has any workaround for it.

    Hi

    I have a problem installing Zend Server CE (community edition) on my 32-bit box running Ubuntu 12.04

    When I try:
    Code:
    sudo apt-get install zend-server-ce-php-5.3
    I get the following:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    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-ce-php-5.3 : Depends: php-5.3-common-extensions-zend-server but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    I also tried running:
    Code:
    sudo apt-get install php-5.3-common-extensions-zend-server
    but failed with the following message:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    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:
     php-5.3-common-extensions-zend-server : Depends: php-5.3-imap-zend-server but it is not going to be installed
                                             Depends: php-5.3-pdo-pgsql-zend-server but it is not going to be installed
                                             Depends: php-5.3-pgsql-zend-server but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    trying to install each of them individually
    Code:
    sudo apt-get install php-5.3-imap-zend-server php-5.3-pdo-pgsql-zend-server php-5.3-pgsql-zend-server
    also ended up with the following:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    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:
     php-5.3-imap-zend-server : Depends: libkrb53 (>= 1.4.2) but it is not going to be installed
     php-5.3-pdo-pgsql-zend-server : Depends: libpq4 (>= 8.1.4) but it is not going to be installed
     php-5.3-pgsql-zend-server : Depends: libpq4 (>= 8.1.4) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    the same worked on my Ubuntu 11.10 without any problems, any idea what is going wrong?
    Last edited by fara; April 22nd, 2012 at 07:59 PM. Reason: Update

  2. #2
    Join Date
    Mar 2008
    Location
    Queensland Australia
    Beans
    664
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Dependency problem installing Zend Community Server on Ubuntu 12.04

    Try :

    sudo apt-get -f install

    to see if the broken packages are installed.

    regards

  3. #3

    Re: Dependency problem installing Zend Community Server on Ubuntu 12.04

    Quote Originally Posted by drdos2006 View Post
    Try :

    sudo apt-get -f install

    to see if the broken packages are installed.

    regards
    Thanks for your reply.

    tried that, no difference, and also tried:
    Code:
    sudo apt-get check
    to check if there is any broken dependencies, but seems there's none
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    cheers

  4. #4
    Join Date
    May 2012
    Beans
    2

    Re: Dependency problem installing Zend Community Server on Ubuntu 12.04

    :: FIRST POST! ::
    I received the same error as the OP. However, I managed to painfully install Zend Server Community Edition 5.3.

    Problem: Installing Zend Server CE fails because of unmet dependencies.
    Cause: php-5.3-imap-zend-server & libpq4 references renamed dependency libkrb53
    Solution: Manually change the dependency in the .deb file to libkrb5-3



    Phase 1: Download the offending package

    Download manually the php-5.3-imap-zend-server & libpq4
    Code:
    sudo -i
    apt-get download php-5.3-imap-zend-server
    apt-get download libpq4
    apt-get download zend-server-ce-php-5.3
    Phase 2: Prepare to edit the offending package
    First you need to download the handy dandy script from:
    http://ubuntuforums.org/showthread.php?t=636724

    Copy the entire script as posted in the box
    That's the one that starts with #!/bin/bash


    Code:
    gedit videbcontrol
    Paste code that you previously copied
    Save & Exit

    Code:
    chmod +x videbcontrol
    Phase3: Edit the offending packages
    Code:
    ./videbcontrol php-5.3-imap.zend-server_5.3.9+b261_i386.deb
    This will open the package in VI Editor.
    Scroll down to "Depends:"
    Change libkr53 to libkr5-3; save and exit

    If you know VI skip this - otherwise:
    Use your arrow keys to get to libkr53. When your cursor is over the 3 press I then - (dash) to change it to libkrb5-3.
    Press shift + ; (basically you want to type a semi colon : )
    Press x then press [Enter] key

    This process will create a file called php-5.3-imap.zend server_5.3.9+b261_i386.modified.deb

    (repeat process for libpq4)

    Phase 4: Install the modified packages

    Code:
    gdebi php-5.3-imap.zend-server_5.3.9+b261_i386.modified.deb
    If you dont have gdebi type:
    Code:
    apt-get install gdebi
    gdebi php-5.3-imap.zend-server_5.3.9+b261_i386.modified.deb is going to fail!

    Install all the other required dependencies to get php-5.3-imap.zend-server_5.3.9+b261_i386.modified.deb to work:
    Code:
    dpkg -i php-5.3-imap.zend-server_5.3.9+b261_i386.modified.deb
    dpkg -i libpq4_8.1.17-1_i386.modified.deb
    dpkg -i zend-server-ce-php-5.3_5.6.0+b09_all.deb
    apt-get -f install
    Run this!
    Code:
    gdebi php-5.3-imap.zend-server_5.3.9+b261_i386.modified.deb


    Phase 5: Finish installing Zend Server

    Code:
    apt-get install zend-server-ce-php-5.3
    apt-get update
    Log into your server
    http://localhost:10081/ZendServer


    If you keep getting errors it helps to try to manually install the dependency package and see why it is failing. If it is failing because of libkrb53 still just modify it as we did the imap server file and install with gdebi. You might get a libssl package error. Download it with apt-get download and then check the error by running dpkg -i <filename> then repeat the steps if needs to be changed to libkrb5-3.

    Good Luck!

    EDIT: Updated to add omission of libpq4 as suggest by RastaFeri - Thank you
    Last edited by iamLeGaCyOne; May 3rd, 2012 at 02:40 PM. Reason: Phase 4 needs to que dependencies of imap-server by dpkg -i zend-server-ce-5.3 local .deb file from phase 1

  5. #5
    Join Date
    Sep 2011
    Beans
    2

    Re: Dependency problem installing Zend Community Server on Ubuntu 12.04

    i was reproducing iamLeGaCyOne's instructions and i was successful, but with one minor change - i had to duplicate the same steps concerning the package download php-5.3-imap-zend-server with the package called libpq4

    after that the installation worked

    thanks iamLeGaCyOne

  6. #6
    Join Date
    May 2012
    Beans
    2

    Re: Dependency problem installing Zend Community Server on Ubuntu 12.04

    AHH!! that's what it was! I will note that in my instructions for future readers.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •