CentOS 7.4-1708 install problem

I am having trouble installing Percona on a freshly installed CentOS 7.4-1708. I am following the instructions on this page - [url]https://www.percona.com/doc/percona-server/LATEST/installation/yum_repo.html[/url]

I started with the easy install on yum:
[INDENT][I]yum install [url]http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm[/url]
Loaded plugins: fastestmirror, langpacks
percona-release-0.1-4.noarch.rpm | 6.4 kB 00:00:00
Examining /var/tmp/yum-root-tQnoaa/percona-release-0.1-4.noarch.rpm: percona-release-0.1-4.noarch
Marking /var/tmp/yum-root-tQnoaa/percona-release-0.1-4.noarch.rpm to be installed
Resolving Dependencies
→ Running transaction check
—> Package percona-release.noarch 0:0.1-4 will be installed
→ Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================================
Package Arch Version Repository Size

Installing:
percona-release noarch 0.1-4 /percona-release-0.1-4.noarch 5.8 k

Transaction Summary

Install 1 Package

Total size: 5.8 k
Installed size: 5.8 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : percona-release-0.1-4.noarch 1/1
Verifying : percona-release-0.1-4.noarch 1/1

Installed:
percona-release.noarch 0:0.1-4

Complete![/I][/INDENT]

This worked quite well, however the next step failed:
[INDENT][I]yum install Percona-Server-server-57
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: mirrors.centos.webair.com
  • epel: mirror.metrocast.net
  • extras: mirror.cogentco.com
  • updates: mirror.net.cen.ct.gov
  • webtatic: us-east.repo.webtatic.com
    Resolving Dependencies
    → Running transaction check
    —> Package Percona-Server-server-57.x86_64 0:5.7.20-19.1.el7 will be installed
    → Processing Dependency: Percona-Server-shared-57 for package: Percona-Server-server-57-5.7.20-19.1.el7.x86_64
    → Processing Dependency: Percona-Server-client-57 for package: Percona-Server-server-57-5.7.20-19.1.el7.x86_64
    → Running transaction check
    —> Package Percona-Server-client-57.x86_64 0:5.7.20-19.1.el7 will be installed
    —> Package Percona-Server-shared-57.x86_64 0:5.7.20-19.1.el7 will be installed
    → Processing Dependency: Percona-Server-shared-compat-57 for package: Percona-Server-shared-57-5.7.20-19.1.el7.x86_64
    → Running transaction check
    —> Package Percona-Server-shared-compat-57.x86_64 0:5.7.20-19.1.el7 will be obsoleting
    —> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be obsoleted
    → Processing Dependency: mariadb-libs(x86-64) = 1:5.5.56-2.el7 for package: 1:mariadb-5.5.56-2.el7.x86_64
    → Processing Dependency: mariadb-libs(x86-64) = 1:5.5.56-2.el7 for package: 1:mariadb-server-5.5.56-2.el7.x86_64
    → Finished Dependency Resolution
    Error: Package: 1:mariadb-5.5.56-2.el7.x86_64 (@anaconda)
    Requires: mariadb-libs(x86-64) = 1:5.5.56-2.el7
    Removing: 1:mariadb-libs-5.5.56-2.el7.x86_64 (@anaconda)
    mariadb-libs(x86-64) = 1:5.5.56-2.el7
    Obsoleted By: Percona-Server-shared-compat-57-5.7.20-19.1.el7.x86_64 (percona-release-x86_64)
    Not found
    Error: Package: 1:mariadb-server-5.5.56-2.el7.x86_64 (@anaconda)
    Requires: mariadb-libs(x86-64) = 1:5.5.56-2.el7
    Removing: 1:mariadb-libs-5.5.56-2.el7.x86_64 (@anaconda)
    mariadb-libs(x86-64) = 1:5.5.56-2.el7
    Obsoleted By: Percona-Server-shared-compat-57-5.7.20-19.1.el7.x86_64 (percona-release-x86_64)
    Not found
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest[/I][/INDENT]

I attempted both ‘suggestions’ but they did not help (skip broken and rpm…)

So I decided to run the rpm install. I first removed percona with [INDENT]yum remove percona*[/INDENT]
and then downloaded the .tar file, expanded it and ran:
[INDENT]rpm -ivh Percona-Server-server-57-5.7.10-3.1.el7.x86_64.rpm Percona-Server-client-57-5.7.10-3.1.el7.x86_64.rpm Percona-Server-shared-57-5.7.10-3.1.el7.x86_64.rpm
error: Failed dependencies:
Percona-Server-shared-compat-57 is needed by Percona-Server-shared-57-5.7.10-3.1.el7.x86_64
[/INDENT]

Any ideas? What am I doing wrong?

Hi wesmat;

Looks like some fun dependency issues going on there. What happens if you try and do “yum remove mariadb-libs”? If it will let you remove that without removing whatever it is depending on (Anaconda?), then that is the easiest route. If that doesn’t work, I’d try to remove it via “rpm -e --nodeps”. That should force the removal despite the dependency, and then you’ll have to verify that whatever was depending on it still works after you install Percona Server.

Alternatively if you want to just install via RPM as you tried, looks like it just wanted you to also include the Percona-Server-shared-compat RPM that should have came in that same bundle you downloaded.

Thanks! The ‘yum remove mariadb-libs’ worked and everything is now installed.