Topic: Errors during update to php-mbstring-7.4.7

When running updates to our PHP packages, I'm receiving the following errors:

# dnf update
Last metadata expiration check: 0:35:08 ago on Thu 18 Jun 2020 09:45:20 AM CDT.
Error:
Problem 1: package php-mbstring-7.4.7-1.el8.remi.x86_64 requires libonig.so.105()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package php-mbstring-7.4.6-1.el8.remi.x86_64
  - package oniguruma5php-6.9.5+rev1-1.el8.remi.x86_64 is excluded
  - package oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64 is excluded
Problem 2: problem with installed package php-mbstring-7.4.6-1.el8.remi.x86_64
  - package php-mbstring-7.4.6-1.el8.remi.x86_64 requires php-common(x86-64) = 7.4.6-1.el8.remi, but none of the providers can be installed
  - cannot install both php-common-7.4.7-1.el8.remi.x86_64 and php-common-7.4.6-1.el8.remi.x86_64
  - package php-mbstring-7.4.7-1.el8.remi.x86_64 requires libonig.so.105()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package php-common-7.4.6-1.el8.remi.x86_64
  - package oniguruma5php-6.9.5+rev1-1.el8.remi.x86_64 is excluded
  - package oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64 is excluded
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


Here's the repolist output, if it helps....

# yum repolist
Last metadata expiration check: 0:36:04 ago on Thu 18 Jun 2020 09:45:20 AM CDT.
repo id       repo name                                                   status
AppStream     CentOS-8 - AppStream                                        4,895
BaseOS        CentOS-8 - Base                                             1,673
PowerTools    CentOS-8 - PowerTools                                       1,442
*epel         Extra Packages for Enterprise Linux 8 - x86_64              5,812
*epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64          0
extras        CentOS-8 - Extras                                              20
remi-modular  Remi's Modular repository for Enterprise Linux 8 - x86_64     338
remi-safe     Safe Remi's RPM repository for Enterprise Linux 8 - x86_64  2,207

Running on CentOS Linux release 8.1.1911 (Core).

I'm looking for recommendations as to how best to handle this, as I'm fairly new to this aspect of Linux.

Thanks!

Re: Errors during update to php-mbstring-7.4.7

Sorry, but I cannot reproduce.

>  - package oniguruma5php-6.9.5+rev1-1.el8.remi.x86_64 is excluded

But why ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Errors during update to php-mbstring-7.4.7

# dnf install php-mbstring
Last metadata expiration check: 0:00:07 ago on Thu Jun 18 19:05:21 2020.
Dependencies resolved.
=====================================================================================================================
 Package                    Architecture        Version                              Repository                 Size
=====================================================================================================================
Installing:
 php-mbstring               x86_64              7.4.7-1.el8.remi                     remi-modular              528 k
Installing dependencies:
 oniguruma5php              x86_64              6.9.5+rev1-2.el8.remi                remi-safe                 206 k

Transaction Summary
=====================================================================================================================
Install  2 Packages

Total download size: 734 k
Installed size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64.rpm                                627 kB/s | 206 kB     00:00    
(2/2): php-mbstring-7.4.7-1.el8.remi.x86_64.rpm                                      843 kB/s | 528 kB     00:00    
---------------------------------------------------------------------------------------------------------------------
Total                                                                                1.1 MB/s | 734 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                             1/1 
  Installing       : oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64                                                  1/2 
  Installing       : php-mbstring-7.4.7-1.el8.remi.x86_64                                                        2/2 
  Running scriptlet: php-mbstring-7.4.7-1.el8.remi.x86_64                                                        2/2 
  Verifying        : php-mbstring-7.4.7-1.el8.remi.x86_64                                                        1/2 
  Verifying        : oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64                                                  2/2 
Installed products updated.

Installed:
  oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64                   php-mbstring-7.4.7-1.el8.remi.x86_64                  

Complete!
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Errors during update to php-mbstring-7.4.7

Thanks for checking on this for me.

We'll do some further research on our end, and will post an update with what we find to fix the issue.

Re: Errors during update to php-mbstring-7.4.7

Also notice that there is >11000 download of this package on EL-8 (partial numbers from some mirrors), so seems to be ok for most users...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

6 (edited by BSDUKJ 2020-06-19 13:43:12)

Re: Errors during update to php-mbstring-7.4.7

I get something pretty similar:

# yum --disablerepo=epel update
                                                                                                                                                       
Resolving Dependencies
--> Running transaction check
---> Package oniguruma5.x86_64 0:6.9.5+rev1-1.el7.remi will be obsoleted
--> Processing Dependency: libonig.so.5()(64bit) for package: php-mbstring-7.4.5-1.el7.remi.x86_64
---> Package oniguruma5php.x86_64 0:6.9.5+rev1-2.el7.remi will be obsoleting
--> Finished Dependency Resolution
Error: Package: php-mbstring-7.4.5-1.el7.remi.x86_64 (@remi-php74)
           Requires: libonig.so.5()(64bit)
           Removing: oniguruma5-6.9.5+rev1-1.el7.remi.x86_64 (@remi-safe)
               libonig.so.5()(64bit)
           Obsoleted By: oniguruma5php-6.9.5+rev1-2.el7.remi.x86_64 (remi-safe)
              ~libonig.so.105()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Re: Errors during update to php-mbstring-7.4.7

BSDUKJ your problem is different.

You have not enabled "remi-php74" repository, so don't receive PHP updates

Latest php 7.4.7 uses oniguruma5php which obsoletes oniguruma5 used by previous PHP versions.

Reminder: always follow the Wizard instructions for a proper configuration.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Errors during update to php-mbstring-7.4.7

Thanks Remi,

Not only was "remi-php74" repo not enabled but neither was "remi-release" therefore "php-fedora-autoloader-1.0.1-2.el7.noarch.rpm" wouldn't install either.

Sorted now, thanks very much.