• Hi,

    I upgraded from Debian 9 to Debian 10. Now I want to remove the outdated php 7.0 packages but apt-get wants also to remove the z-push packages.

    # apt-get remove php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-json php7.0-ldap php7.0-mbstring php7.0-opcache php7.0-readline php7.0-soap php7.0-xml php7.0-zip
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package 'php7.0-curl' is not installed, so not removed
    The following packages will be REMOVED:
      libapache2-mod-php7.0 php7.0 php7.0-cli php7.0-common php7.0-json php7.0-ldap php7.0-mbstring php7.0-opcache php7.0-readline php7.0-soap php7.0-xml php7.0-zip z-push-autodiscover z-push-backend-kopano z-push-common
      z-push-config-apache z-push-ipc-sharedmemory z-push-kopano z-push-kopano-gabsync
    0 upgraded, 0 newly installed, 19 to remove and 0 not upgraded.
    After this operation, 20.1 MB disk space will be freed.
    Do you want to continue? [Y/n] n
    Abort.
    #
    

    I already reinstalled the z-push packages:

    # apt-get install --reinstall z-push-autodiscover z-push-backend-kopano z-push-common z-push-config-apache z-push-ipc-sharedmemory z-push-kopano z-push-kopano-gabsync
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 7 reinstalled, 0 to remove and 0 not upgraded.
    Need to get 271 kB/540 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://repo.z-hub.io/z-push:/final/Debian_10  z-push-autodiscover 2.5.2+0-0 [24.3 kB]
    Get:2 http://repo.z-hub.io/z-push:/final/Debian_10  z-push-backend-kopano 2.5.2+0-0 [166 kB]
    Get:3 http://repo.z-hub.io/z-push:/final/Debian_10  z-push-config-apache 2.5.2+0-0 [17.2 kB]
    Get:4 http://repo.z-hub.io/z-push:/final/Debian_10  z-push-ipc-sharedmemory 2.5.2+0-0 [17.4 kB]
    Get:5 http://repo.z-hub.io/z-push:/final/Debian_10  z-push-kopano 2.5.2+0-0 [15.9 kB]
    Get:6 http://repo.z-hub.io/z-push:/final/Debian_10  z-push-kopano-gabsync 2.5.2+0-0 [30.3 kB]
    Fetched 271 kB in 1s (262 kB/s)
    (Reading database ... 72625 files and directories currently installed.)
    Preparing to unpack .../0-z-push-autodiscover_2.5.2+0-0_all.deb ...
    Unpacking z-push-autodiscover (2.5.2+0-0) over (2.5.2+0-0) ...
    Preparing to unpack .../1-z-push-backend-kopano_2.5.2+0-0_all.deb ...
    Unpacking z-push-backend-kopano (2.5.2+0-0) over (2.5.2+0-0) ...
    Preparing to unpack .../2-z-push-common_2.5.2+0-0_all.deb ...
    Unpacking z-push-common (2.5.2+0-0) over (2.5.2+0-0) ...
    Preparing to unpack .../3-z-push-config-apache_2.5.2+0-0_all.deb ...
    Unpacking z-push-config-apache (2.5.2+0-0) over (2.5.2+0-0) ...
    Conf z-push disabled.
    To activate the new configuration, you need to run:
      systemctl reload apache2
    Preparing to unpack .../4-z-push-ipc-sharedmemory_2.5.2+0-0_all.deb ...
    Unpacking z-push-ipc-sharedmemory (2.5.2+0-0) over (2.5.2+0-0) ...
    Preparing to unpack .../5-z-push-kopano_2.5.2+0-0_all.deb ...
    Unpacking z-push-kopano (2.5.2+0-0) over (2.5.2+0-0) ...
    Preparing to unpack .../6-z-push-kopano-gabsync_2.5.2+0-0_all.deb ...
    Unpacking z-push-kopano-gabsync (2.5.2+0-0) over (2.5.2+0-0) ...
    Setting up z-push-common (2.5.2+0-0) ...
    
    Validating and fixing states (this can take some time):
            17:51:54 Checking username casings: Processed: 70 - Converted: 0 - Removed: 0
            17:51:55 Checking available devicedata & user linking: Processed: 70 - Fixed: 0
            17:51:56 Checking for unreferenced (obsolete) state files: Processed: 3981 - Deleted: 0
            17:51:56 Checking for hierarchy folder data state: Devices: 63 - Processed: 70 - Fixed: 0 - Device+User without hierarchy: 0
            17:51:56 Checking flags of shared folders: Devices: 63 - Devices with additional folders: 5 - Fixed: 0
    
    Setting up z-push-backend-kopano (2.5.2+0-0) ...
    Setting up z-push-config-apache (2.5.2+0-0) ...
    Enabling conf z-push.
    To activate the new configuration, you need to run:
      systemctl reload apache2
    apache2_invoke z-push: already enabled
    Setting up z-push-ipc-sharedmemory (2.5.2+0-0) ...
    Setting up z-push-kopano (2.5.2+0-0) ...
    Setting up z-push-autodiscover (2.5.2+0-0) ...
    Setting up z-push-kopano-gabsync (2.5.2+0-0) ...
    Processing triggers for man-db (2.8.5-2) ...
    #
    

    But this did not help.

    Any ideas why z-push will be removed. I assume the Debian 10 z-push packets depends to php 7.3 or?

    Walter


  • I did some tests and I was able to remove most php 7.0 modules, only two modules I can’t remove without loosing z-push. The modules are:
    php7.0-common php7.0-soap

    # apt-get remove  php7.0-common
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
      php7.0-common php7.0-soap z-push-autodiscover z-push-backend-kopano z-push-common z-push-config-apache z-push-ipc-sharedmemory z-push-kopano z-push-kopano-gabsync
    0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
    After this operation, 8,671 kB disk space will be freed.
    Do you want to continue? [Y/n] n
    Abort.
    #
    

    For me it seams, current z-push depends on this two php 7.0 modules, any ideas how to solve this issue?

    Walter


  • To answer my own question, php7.3-soap was not installed automatically. After installing php7.3-soap I was able to remove all php7.0 modules. It seams the dependencies for Debian 10 was not setup correctly in z-push.

  • Kopano

    Hi @WalterHof,

    z-push-common has a dependency on php-soap package without specifying its version. As you already had php7.0-soap installed, it was good enough for Z-Push. As you were trying to remove it without installing a newer php-soap version first, Z-Push would be removed as well.

    Also, this wouldn’t have happened if the php7.0* packages were upgraded to php7.3* packages during the OS upgrade, so that’s the issue you have to look at.

    Manfred