LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2019, 10:52 AM   #1
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Rep: Reputation: 7
Errors trying to update PHP with yum


Hi,

I'm running a machine with CentOS release 6.10 (updated: previously incorrectly stated CentOS-7), and am trying to update PHP from 5.3 to 7.1. I thought it would just be as easy as "sudo yum update php", but apparently not. I found a couple of sites which suggested different ways to do things, but whatever I try I end up with error messages such as below, and I don't know how to resolve the problems which the error messages imply.

I've already done a system update with "sudo yum update", and it seems to have updated everything it knows about with no problems.

So, a sample of the messages I get when trying to update PHP is below:

Code:
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: php-xml-7.1.29-1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-7.1.29-1.el7.remi.x86_64 (remi-php71)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libpng15.so.15()(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libpng15.so.15(PNG15_0)(64bit)
Error: Package: php-mysqlnd-7.1.29-1.el7.remi.x86_64 (remi-php71)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-gd-7.1.29-1.el7.remi.x86_64 (remi-php71)
Any assistance appreciated. Thanks.

Last edited by cheddarcheese; 05-16-2019 at 12:07 PM.
 
Old 05-16-2019, 11:28 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
It's basically saying the dependencies required cannot be found in any software repositories you have enabled. Also, CentOS doesn't use sudo by default - you simply run su - to get root privileges.

Can you post the output of the following command using CODE tags:

Code:
yum repolist
I suspect you may not have the epel repo or similar enabled.
 
Old 05-16-2019, 12:05 PM   #3
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
Hi,

Output from "yum repolist" per below:

Code:
$ yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: mirror.layeronline.com
 * remi-php70: mirror.team-cymru.com
 * remi-php71: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
repo id                                   repo name                                                                                    status
base                                      CentOS-6 - Base                                                                               6,713
epel                                      Extra Packages for Enterprise Linux 7 - x86_64                                               13,190
extras                                    CentOS-6 - Extras                                                                                46
openlogic                                 CentOS-6 - openlogic packages for x86_64                                                        112
remi-php70                                Remi's PHP 7.0 RPM repository for Enterprise Linux 7 - x86_64                                   414
remi-php71                                Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - x86_64                                   421
remi-safe                                 Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                                    3,191
updates                                   CentOS-6 - Updates                                                                              463
repolist: 24,550
Actually, I should have said I'm using CentOS 6.10, rather than CentOS-7. Apologies!

Last edited by cheddarcheese; 05-16-2019 at 12:06 PM.
 
Old 05-16-2019, 12:19 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
That explains it, you need CentOS 7 for the packages you're trying to install - that's why yum is complaining.

I have all of those libraries on my CentOS 7 system, same versions that yum's complaining about not having on your system too.

Install CentOS 7 or find the correct version of what you're trying to install for CentOS 6.
 
Old 05-16-2019, 01:06 PM   #5
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
Okay; well, I would update to 7 if I could, but apparently I need to update first to 6.5 in order to do that; however, when I try to update to 6.5 it seems there are no updates available.

I tried to remove the php7* repo's, but that didn't seem to work (guess I must be doing something wrong), but now (discovering that the most recent version of PHP I can use on CentOS 6.* is 5.6) I added a 5.6 repo, but that meets with the same errors as I was originally getting when I try to update PHP, so I don't seem able to do that either.

Confused! Any assistance appreciated.
 
Old 05-16-2019, 01:09 PM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
First, you should ALWAYS do a clean install of CentOS, not an "upgrade".

Second, if you can't install CentOS 7, then remove the repo's for CentOS/Enterprise 7, then add the same repo's for CentOS 6 instead.

You can't mix repo's for CentOS 7 and repo's for CentOS 6, etc - it won't work. Those packages are built for CentOS/RHEL 7, not CentOS/RHEL 6 - simple as that.
 
Old 05-16-2019, 01:39 PM   #7
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
Yeah, unfortunately on this machine I can't do a clean install of CentOS-7, as much as I would like to. (I actually do have 7 on a different machine, which is why I originally said, incorrectly, it was using 7).

Anyway, I had tried to remove the repo's for CentOS-7, but it seemed to error. I don't know if I was doing something wrong (I guess I must have been). I was trying with this:

Code:
# yum remove remi-php71
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for argument: remi-php71
Loading mirror speeds from cached hostfile

 * epel: mirror.layeronline.com
 * remi-php56: mirror.team-cymru.com
 * remi-php70: mirror.team-cymru.com
 * remi-php71: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
No Packages marked for removal
I'm not super-familiar with doing much of this so I guess I have something wrong somewhere along the line. Is there something completely obvious which I'm doing wrong?
 
Old 05-16-2019, 02:07 PM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by cheddarcheese View Post
Yeah, unfortunately on this machine I can't do a clean install of CentOS-7, as much as I would like to. (I actually do have 7 on a different machine, which is why I originally said, incorrectly, it was using 7).

Anyway, I had tried to remove the repo's for CentOS-7, but it seemed to error. I don't know if I was doing something wrong (I guess I must have been). I was trying with this:
...
I'm not super-familiar with doing much of this so I guess I have something wrong somewhere along the line. Is there something completely obvious which I'm doing wrong?
Yes, you've asked yum to remove a package that isn't installed.

While I'm not at my machine right now, you can either delete the .repo file for the repo you want to remove (from memory in /etc/yum.repo.d I think - again, I'm not at my machine right now), or run the relevant yum command - you'll have to look it up, as I don't remember it off the top of my head.
 
Old 05-16-2019, 02:20 PM   #9
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
Okay, so I went into /etc/yum.repos.d/ and removed all the php7 stuff.

But having tried to update PHP again I still end up with all kinds of error messages, per below:

Code:
--> Finished Dependency Resolution
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libpng15.so.15(PNG15_0)(64bit)
Error: Package: php-mbstring-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-gd-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: libzip5-1.5.2-1.el7.remi.x86_64 (remi-safe)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libtidy-5.4.0-1.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicudata.so.50()(64bit)
Error: Package: php-xml-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libxml2.so.2(LIBXML2_2.9.0)(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicuio.so.50()(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: httpd-mmn = 20120211x8664
           Installed: httpd-2.2.15-69.el6.centos.x86_64 (@base)
               httpd-mmn = 20051115
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: systemd-sysv
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libwebp7-1.0.2-1.el7.remi.x86_64 (remi-safe)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: libmcrypt-2.5.8-13.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-soap-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-process-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libtokyocabinet.so.9()(64bit)
Error: Package: php-ldap-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libsasl2.so.3()(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libtiff.so.5()(64bit)
Error: Package: php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: systemd-units
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libsystemd.so.0()(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicuuc.so.50()(64bit)
Error: Package: php-bcmath-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicui18n.so.50()(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-mysqlnd-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libgdbm.so.4()(64bit)
Error: Package: php-mcrypt-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-common-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-xml-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libdb-5.3.so()(64bit)
Error: Package: php-pdo-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php-pecl-apcu-4.0.11-2.el7.remi.5.6.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Can't believe this should be so difficult. What do I have to do to get it working?
 
1 members found this post helpful.
Old 05-16-2019, 02:20 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by cheddarcheese View Post
Yeah, unfortunately on this machine I can't do a clean install of CentOS-7, as much as I would like to. (I actually do have 7 on a different machine, which is why I originally said, incorrectly, it was using 7).
Oh? Why not? If this machine is capable of running CentOS 7 (and you're trying to UPGRADE to CentOS 7), then it obviously CAN run it. So why can't you do a fresh install??? Schedule downtime, install fresh, and restore data from backups....just as if you would if (when) the server crashes.
Quote:
Anyway, I had tried to remove the repo's for CentOS-7, but it seemed to error. I don't know if I was doing something wrong (I guess I must have been). I was trying with this:

Code:
# yum remove remi-php71
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for argument: remi-php71
Loading mirror speeds from cached hostfile

 * epel: mirror.layeronline.com
 * remi-php56: mirror.team-cymru.com
 * remi-php70: mirror.team-cymru.com
 * remi-php71: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
No Packages marked for removal
I'm not super-familiar with doing much of this so I guess I have something wrong somewhere along the line. Is there something completely obvious which I'm doing wrong?
jsbjsb001 has given some good advice, and I'd strongly suggest you take it. Do *NOT* do an in-place upgrade..you are just asking for trouble, especially going up a few minor versions, then going a MAJOR version up from those.
 
1 members found this post helpful.
Old 05-16-2019, 02:28 PM   #11
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
I can't do a fresh install because it's on a MS Azure VM. The only alternative, in this instance, is creating an entirely new VM, downloading the existing machines setup, etc, etc, and spending forever trying to configure the new VM. Also, in-place upgrades (of the OS) are not supported at all anyway.

So, a CentOS-7 upgrade is not going to happen, but that wasn't my orginal query anyway; I just want to update the version of PHP I have to the latest version which is applicable to the version of CentOS which I have; in this case it'll be PHP-5.6.

Last edited by cheddarcheese; 05-16-2019 at 02:29 PM.
 
Old 05-16-2019, 02:30 PM   #12
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by cheddarcheese View Post
Okay, so I went into /etc/yum.repos.d/ and removed all the php7 stuff.

But having tried to update PHP again I still end up with all kinds of error messages, per below:

Code:
--> Finished Dependency Resolution
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libpng15.so.15(PNG15_0)(64bit)
Error: Package: php-mbstring-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-gd-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: libzip5-1.5.2-1.el7.remi.x86_64 (remi-safe)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libtidy-5.4.0-1.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicudata.so.50()(64bit)
Error: Package: php-xml-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libxml2.so.2(LIBXML2_2.9.0)(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicuio.so.50()(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: httpd-mmn = 20120211x8664
           Installed: httpd-2.2.15-69.el6.centos.x86_64 (@base)
               httpd-mmn = 20051115
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: systemd-sysv
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libwebp7-1.0.2-1.el7.remi.x86_64 (remi-safe)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: libmcrypt-2.5.8-13.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-soap-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-process-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libtokyocabinet.so.9()(64bit)
Error: Package: php-ldap-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libsasl2.so.3()(64bit)
Error: Package: gd-last-2.2.5-8.el7.remi.x86_64 (remi-safe)
           Requires: libtiff.so.5()(64bit)
Error: Package: php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: systemd-units
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libsystemd.so.0()(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicuuc.so.50()(64bit)
Error: Package: php-bcmath-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libicui18n.so.50()(64bit)
Error: Package: php-intl-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-mysqlnd-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libgdbm.so.4()(64bit)
Error: Package: php-mcrypt-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-common-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-xml-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libdb-5.3.so()(64bit)
Error: Package: php-pdo-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-fpm-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php-dba-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php-pecl-apcu-4.0.11-2.el7.remi.5.6.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Can't believe this should be so difficult. What do I have to do to get it working?
Do you see all the 'el7' error messages? This indicates you are trying to install CentOS 7 packages on your CentOS 6 system. Disable the repos that are causing the errors (remi-php56 and remi-safe) and try again.
 
Old 05-16-2019, 02:45 PM   #13
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
I just don't get it at all. I've done all the stuff I think I'm meant to have done, but still doesn't work.

So, /etc/repos.d/ has this in it:

Code:
# ls -l
total 64
-rw-r--r--. 1 root root 2049 Jan  6  2017 CentOS-Base.repo
-rw-r--r--  1 root root  647 Jun 26  2018 CentOS-Debuginfo.repo
-rw-r--r--  1 root root  289 Jun 26  2018 CentOS-fasttrack.repo
-rw-r--r--  1 root root  630 Jun 26  2018 CentOS-Media.repo
-rw-r--r--  1 root root 8854 Jun 26  2018 CentOS-Vault.repo
-rw-r--r--  1 root root  951 Oct  2  2017 epel.repo
-rw-r--r--  1 root root 1050 Oct  2  2017 epel-testing.repo
-rw-r--r--. 1 root root  282 Jan  6  2017 OpenLogic.repo
-rw-r--r--  1 root root  446 Mar  8 07:34 remi-glpi91.repo
-rw-r--r--  1 root root  446 Mar  8 07:34 remi-glpi92.repo
-rw-r--r--  1 root root  446 Mar  8 07:34 remi-glpi93.repo
-rw-r--r--  1 root root  446 Mar  8 07:34 remi-glpi94.repo
-rw-r--r--  1 root root  855 Mar  8 07:34 remi-modular.repo
-rw-r--r--  1 root root 2605 May 16 19:15 remi.repo
Yum says this:

Code:
# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: mirror.layeronline.com
 * remi-php56: mirror.team-cymru.com
repo id                                   repo name                                                                                    status
base                                      CentOS-6 - Base                                                                               6,713
epel                                      Extra Packages for Enterprise Linux 7 - x86_64                                               13,190
extras                                    CentOS-6 - Extras                                                                                46
openlogic                                 CentOS-6 - openlogic packages for x86_64                                                        112
remi-php56                                Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64                                   439
updates                                   CentOS-6 - Updates                                                                              463
repolist: 20,963
Tried disabling the remi-php56 repo, as suggested, but that didn't seem to work, and I'm not sure why I'd want to do that anyway, seeing as that's the version of PHP that I'm trying to update to.

Code:
# yum --disablerepo=remi-php56
Loaded plugins: fastestmirror, security
You need to give some command
Code:
# yum update php
...
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-gd-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-cli-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: libpcre.so.1()(64bit)
Error: Package: php-gd-5.6.40-8.el7.remi.x86_64 (remi-php56)
           Requires: gd-last(x86-64) >= 2.1.1
...
etc, etc.
 
Old 05-16-2019, 02:50 PM   #14
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Try:

Code:
# yum --disablerepo=remi-php56 update
 
Old 05-16-2019, 02:56 PM   #15
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Original Poster
Rep: Reputation: 7
Yeah, I had already tried that too actually; here's what I get (i.e. the error message part of it):

Code:
--> Finished Dependency Resolution
Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (epel)
           Requires: php(api) = 20100412-64
           Installed: php-common-5.3.3-49.el6.x86_64 (@base)
               php(api) = 20090626
Error: Package: iproute-2.6.32-57.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: rpm-python-4.8.0-59.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: cyrus-sasl-2.1.23-15.el6_6.2.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: php-dba-5.3.3-49.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: php-tidy-5.4.16-9.el7.x86_64 (epel)
           Requires: php(zend-abi) = 20100525-64
           Installed: php-common-5.3.3-49.el6.x86_64 (@base)
               php(zend-abi) = 20090626
Error: Package: 4:perl-5.10.1-144.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: php-tidy-5.4.16-9.el7.x86_64 (epel)
           Requires: php(api) = 20100412-64
           Installed: php-common-5.3.3-49.el6.x86_64 (@base)
               php(api) = 20090626
Error: Package: 1:wireless-tools-29-13.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: python2-crypto-2.6.1-16.el7.x86_64 (epel)
           Requires: python(abi) = 2.7
           Installed: python-2.6.6-66.el6_8.x86_64 (@CentOS-Updates/6.8)
               python(abi) = 2.6
           Available: python34-3.4.10-1.el7.x86_64 (epel)
               python(abi) = 3.4
           Available: python36-3.6.8-1.el7.x86_64 (epel)
               python(abi) = 3.6
               python(abi) = 3.6
Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: compat-libtidy-0.99.0-37.20091203.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: python2-crypto-2.6.1-16.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python-cryptography
Error: Package: httpd-tools-2.2.15-69.el6.centos.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: python-libs-2.6.6-66.el6_8.x86_64 (@CentOS-Updates/6.8)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libdb4-4.8.30-13.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python2-pyasn1
Error: Package: python2-crypto-2.6.1-16.el7.x86_64 (epel)
           Requires: libpython2.7.so.1.0()(64bit)
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python(abi) = 2.7
           Installed: python-2.6.6-66.el6_8.x86_64 (@CentOS-Updates/6.8)
               python(abi) = 2.6
           Available: python34-3.4.10-1.el7.x86_64 (epel)
               python(abi) = 3.4
           Available: python36-3.6.8-1.el7.x86_64 (epel)
               python(abi) = 3.6
               python(abi) = 3.6
Error: Package: apr-util-1.3.9-3.el6_0.1.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: libdb4 conflicts with filesystem-2.4.30-3.el6.x86_64
Error: Package: dash-0.5.10.2-1.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libtomcrypt-1.17-25.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (epel)
           Requires: php(zend-abi) = 20100525-64
           Installed: php-common-5.3.3-49.el6.x86_64 (@base)
               php(zend-abi) = 20090626
Error: Package: httpd-2.2.15-69.el6.centos.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: rpm-libs-4.8.0-59.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: rpm-4.8.0-59.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: pam-1.1.1-24.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: python2-crypto-2.6.1-16.el7.x86_64 (epel)
           Requires: libgmp.so.10()(64bit)
Error: Package: 2:postfix-2.6.6-8.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-22.el6.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: libdb4-cxx-4.8.30-13.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Aside, why should I be disabling the repo' for PHP 5.6 when that's what I want to be upgrading to? Also, just curious, why would remi-php56 show up in repolist, but not be in /etc/repos.d/?

Last edited by cheddarcheese; 05-16-2019 at 02:59 PM.
 
  


Reply

Tags
php 5 update



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Am trying to install packages like net-snmp, php-mysql, php-snmp, php but with errors Maj Linux - Newbie 1 07-26-2013 02:12 PM
after yum update, can't yum update yet, some error occured novelbean Linux - Newbie 5 04-03-2013 08:13 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
yum update transaction check errors & mirror errors tonycunn Linux - Software 2 11-29-2010 08:16 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration