处理MariaDB Galera Cluster安装报错三例

时间:2022-09-19 20:16:42

OS: redhat 6.3 64位

问题一:
报错如下:
yum install MariaDB-Galera-server MariaDB-client rsync galera
--> Running transaction check
---> Package MariaDB-Galera-server.i686 0:10.0.25-1.el6 will be installed
--> Processing Dependency: libz.so.1(ZLIB_1.2.0) for package: MariaDB-Galera-server-10.0.25-1.el6.i686
---> Package MariaDB-client.i686 0:10.0.25-1.el6 will be obsoleting
--> Processing Dependency: libz.so.1(ZLIB_1.2.0) for package: MariaDB-client-10.0.25-1.el6.i686
---> Package mysqlclient16.x86_64 0:5.1.61-4.ius.el6 will be installed
--> Finished Dependency Resolution
Error: Package: MariaDB-Galera-server-10.0.25-1.el6.i686 (mariadb)
Requires: libz.so.1(ZLIB_1.2.0)
Error: Package: MariaDB-client-10.0.25-1.el6.i686 (mariadb)
Requires: libz.so.1(ZLIB_1.2.0)
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
openssl10-libs-1.0.1e-2.ius.el6.x86_64 is a duplicate with openssl10-libs-1.0.1e-1.ius.el6.i686

问题处理:
用yum whatprovides libz.so.1查看包有安装,升级一下zlib-1.2.3.25到zlib-1.2.3-29即可,执行如下:
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/zlib-1.2.3-29.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/zlib-devel-1.2.3-29.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/zlib-1.2.3-29.el6.i686.rpm
yum update-to zlib-devel-1.2.3-29.el6.x86_64.rpm zlib-1.2.3-29.el6.i686.rpm zlib-1.2.3-29.el6.x86_64.rpm



问题二:
报错如下:

[root@mvxl0782 yum.repos.d]# yum install yum-plugin-replace
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

处理:
将下面的enabled=1改成enabled=0
cd /etc/yum.repos.d
[root@mvxl0782 yum.repos.d]# vi epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

问题三:
报错如下:
[root@mvxl0782 yum.repos.d]# yum replace --enablerepo=ius-archive openssl --replace-with openssl10
Loaded plugins: product-id, refresh-packagekit, replace, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
ius-archive | 2.3 kB 00:00
ius-archive/primary_db | 3.6 MB 00:00
http://yum.mariadb.org/10.0.16/rhel6-x86/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Replacing packages takes time, please be patient...
Error: Multiple packages found matching 'openssl'. Please remove manually.

处理:
[root@mvxl0782 yum.repos.d]# rpm -qa|grep openssl
openssl-1.0.0-20.el6_2.5.i686
openssl-devel-1.0.0-20.el6_2.5.x86_64
openssl098e-0.9.8e-17.el6_2.2.x86_64
openssl-1.0.0-20.el6_2.5.x86_64
[root@mvxl0782 yum.repos.d]# rpm -e openssl098e-0.9.8e-17.el6_2.2.x86_64

[root@mvxl0782 yum.repos.d]# rpm -e openssl-1.0.0-20.el6_2.5.i686
[root@mvxl0782 yum.repos.d]# rpm -qa|grep openssl
openssl-devel-1.0.0-20.el6_2.5.x86_64
openssl-1.0.0-20.el6_2.5.x86_64


再重新安装.