openEuler 2203sp4.x86_64安装MySQL出错python2缺失

Authorized users only. All activities may be monitored and reported.

Authorized users only. All activities may be monitored and reported.
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Wed Sep 23 18:25:22 2026 from 10.10.148.43

Welcome to 5.10.0-216.0.0.115.oe2203sp4.x86_64

System information as of time: Wed Sep 23 06:34:28 PM CST 2026

System load: 0.01
Memory used: 1.0%
Swap used: 0%
Usage On: 21%
IP address: ************
IP address: 192.168.122.1
Users online: 1

[root@sthisdb01 ~]# dnf install Percona-XtraDB-Cluster-server-57
Last metadata expiration check: 0:39:48 ago on Wed 23 Sep 2026 05:54:59 PM CST.
Error:
Problem: cannot install the best candidate for the job

nothing provides /usr/bin/python2 needed by Percona-XtraDB-Cluster-server-57-5.7.44-31.65.1.el8.x86_64
(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
[root@sthisdb01 ~]# ll /usr/bin/python2
-rwxrwxrwx 1 root root 17736 Sep 23 18:22 /usr/bin/python2

[root@sthisdb01 ~]# /usr/bin/python2 --version
Python 2.7.18

===== 我实际是安装了python2,也放到了指定位置,但是yum死活不认识这个路径。求助

It’s inherently inappropriate to install CentOS 8 packages on openEuler. Also, Python 2 has been unmaintained for a long time and is no longer recommended for use.

I recall that Percona-XtraDB-Cluster-server does come with pre-compiled binary packages, which you can also use to compile and install.