PHP(7) pkg/repo quesstions: zypper patch fails

Hi all,

on my VPS, some days after 15.3 upgrade, cron-ed zypper patch fails, subsequent php dependency issues.

Current error msg:

# LC_ALL=En zypper patch
Loading repository data...
Reading installed packages...
Resolving package dependencies...
3 Problems:
Problem: the to be installed patch:SUSE-2020-2997-1.noarch conflicts with 'php7-pear < 7.2.5-4.67.2' provided by the installed php7-pear-1.10.19-1.12.noarch
Problem: the installed php-pear-Net_Socket-1.2.2-lp153.3.11.noarch requires 'php-pear', but this requirement cannot be provided
Problem: the installed php-pear-Net_Sieve-1.4.5-lp153.4.1.noarch requires 'php-pear', but this requirement cannot be provided

Problem: the to be installed patch:SUSE-2020-2997-1.noarch conflicts with 'php7-pear < 7.2.5-4.67.2' provided by the installed php7-pear-1.10.19-1.12.noarch
 Solution 1: Following actions will be done:
  deinstallation of php7-pear-1.10.19-1.12.noarch
  deinstallation of php-pear-Net_SMTP-1.10.0-lp153.8.1.noarch
  deinstallation of php-pear-Net_LDAP2-2.2.0-lp153.3.11.noarch
  deinstallation of php-pear-Net_IDNA2-0.2.0-lp153.3.11.noarch
  deinstallation of php-pear-Mail_Mime-1.10.10-lp153.13.11.noarch
  deinstallation of php-pear-MDB2_Driver_mysqli-1.5.0b4-lp153.4.11.noarch
  deinstallation of php-pear-MDB2-2.5.0b5-lp153.3.11.noarch
  deinstallation of php-pear-Crypt_GPG-1.6.3-lp153.2.10.noarch
  deinstallation of php-pear-Console_CommandLine-1.2.2-lp153.1.10.noarch
  deinstallation of php-pear-Auth_SASL-1.1.0-lp153.3.11.noarch
  deinstallation of nextcloud-22.0.0-lp153.145.1.noarch
  deinstallation of roundcubemail-1.4.11-lp153.1.12.noarch
  deinstallation of nextcloud-apache-22.0.0-lp153.145.1.noarch
 Solution 2: do not install patch:SUSE-2020-2997-1.noarch

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c/d/?] (c): 

These are my currently used repos:

# LC_ALL=En zypper repos --uri
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                        | Name                                                                                        | Enabled | GPG Check | Refresh | URI
---+------------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------------------------------------------------------------------------------------
 1 | coturn.repo                  | home:sdoconnell:coturn.repo                                                                 | No      | ----      | ----    | https://download.opensuse.org/repositories/home:/sdoconnell:/coturn/openSUSE_Leap_15.3/
 2 | openSUSE-Non-OSS             | openSUSE Non-OSS                                                                            | Yes     | (r ) Yes  | No      | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/
 3 | openSUSE-OSS                 | openSUSE OSS                                                                                | Yes     | (r ) Yes  | No      | http://download.opensuse.org/distribution/leap/15.3/repo/oss/
 4 | openSUSE-Updates-Non-OSS     | openSUSE Updates Non-OSS                                                                    | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/non-oss/
 5 | openSUSE-Updates-OSS         | openSUSE Updates OSS                                                                        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/oss
 6 | repo-backports-debug-update  | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    | http://download.opensuse.org/update/leap/15.3/backports_debug/
 7 | repo-backports-update        | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/backports/
 8 | repo-sle-debug-update        | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/sle/
 9 | repo-sle-update              | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/sle/
10 | server:php:applications.repo | server:php:applications.repo                                                                | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Leap_15.3/

And I need the server:php:applications repo to get the recent versions of Nextcloud, phpMyAdmin and Roundcube Webmail for my VPS

# zypper se -i -r  server:php:applications.repo 
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S  | Name                         | Summary                                                                      | Type
---+------------------------------+------------------------------------------------------------------------------+------
i+ | nextcloud                    | File hosting service                                                         | Paket
i  | nextcloud-apache             | Apache configuration for nextcloud                                           | Paket
i+ | php-composer                 | Dependency Management for PHP                                                | Paket
i+ | php-pear-Auth_SASL           | Abstraction of various SASL mechanism responses                              | Paket
i  | php-pear-Console_CommandLine | A full featured command line options and arguments parser                    | Paket
i  | php-pear-Crypt_GPG           | PHP interface to GnuPG                                                       | Paket
i+ | php-pear-MDB2                | Database abstraction layer                                                   | Paket
i+ | php-pear-MDB2_Driver_mysqli  | MySQLi MDB2 driver                                                           | Paket
i+ | php-pear-Mail_Mime           | PHP classes to create MIME messages                                          | Paket
i+ | php-pear-Net_IDNA2           | PHP library for Punycode encoding and decoding                               | Paket
i+ | php-pear-Net_LDAP2           | Object oriented interface for searching and manipulating LDAP-entries        | Paket
i+ | php-pear-Net_SMTP            | An implementation of the SMTP protocol                                       | Paket
i+ | php-pear-Net_Sieve           | PHP module for talking to a sieve server                                     | Paket
i+ | php-pear-Net_Socket          | Network Socket Interface                                                     | Paket
i  | php7-ZendFramework           | Object-oriented web application framework in PHP                             | Paket
i+ | phpMyAdmin                   | Administration of MySQL over the web                                         | Paket
i  | phpMyAdmin-apache            | Apache configuration for phpMyAdmin                                          | Paket
i  | phpMyAdmin-lang              | Translations for package phpMyAdmin                                          | Paket
i+ | postfixadmin                 | Web-based management tool for Postfix virtual domains, mailboxes and aliases | Paket
i  | postfixadmin-apache          | Postfixadmin - Apache configuration                                          | Paket
i+ | roundcubemail                | A browser-based multilingual IMAP client                                     | Paket


I know from history that the move from PHP5 to PHP7 was also a little bit tricky for my VPS, had to made some “vendor changes” for php that time, AFAI remember. But I forgot what exactly I did (with help from #SUSE).
So this time I’m asking here, to get the information more sticky. Probably needed again for PHP8 :smiley:

Any hints would be very nice!

zypper patch (and applets using it in the end) have problems in Leap 15.3. Please update with “zypper up” and if you still have problems report here.

@OrsoBruno zypper up works fine for me, doing this (zypper ref && zypper up && zypper ps -s= manually. But zypper patch seems to be the “automatic” way. Have had some zypper patch deps issue also with 15.2, kernel-something that time, forgot :slight_smile:

Yes, that has been a common experience with 15.3 so far (look for a few threads with similar titles); the problem comes from some patches intended for SUSE SLE that cause conflicts with openSUSE.
You can disable the automatic applets or just ignore them for the time being and run “zypper up” from time to time.