LoginSignup
0
0

More than 1 year has passed since last update.

Mariadb がインストールできない

Posted at

環境

Centos

問題

Mariadb をインストールしようとしたところ以下のエラーが発生しました。

dnf module -y install mariadb:10.3

Waiting for process with pid 713 to finish.
Last metadata expiration check: 0:00:03 ago on 2021年11月29日 03時12分52秒.
Error: 
 Problem: problem with installed package mysql-server-8.0.26-1.module_el8.4.0+915+de215114.x86_64
  - package mysql-server-8.0.26-1.module_el8.4.0+915+de215114.x86_64 conflicts with mariadb-server provided by mariadb-server-3:10.3.28-1.module_el8.3.0+757+d382997d.x86_64
  - package mariadb-server-3:10.3.28-1.module_el8.3.0+757+d382997d.x86_64 conflicts with mysql-server provided by mysql-server-8.0.26-1.module_el8.4.0+915+de215114.x86_64
  - package mariadb-server-3:10.3.28-1.module_el8.3.0+757+d382997d.x86_64 conflicts with mysql-server provided by mysql-server-8.0.21-1.module_el8.4.0+589+11e12751.x86_64
  - package mysql-server-8.0.21-1.module_el8.4.0+589+11e12751.x86_64 conflicts with mariadb-server provided by mariadb-server-3:10.3.28-1.module_el8.3.0+757+d382997d.x86_64
  - cannot install the best candidate for the job
(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)

原因

conflicts with ということからmysql と競合しているということが書いてあるみたいです。

対処策

インストール済みのmysql を確認します。

rpm -qa | grep -i mysql
mysql-server-8.0.26-1.module_el8.4.0+915+de215114.x86_64
zabbix-server-mysql-5.0.17-1.el8.x86_64
mysql-errmsg-8.0.26-1.module_el8.4.0+915+de215114.x86_64
php-mysqlnd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64
zabbix-web-mysql-5.0.17-1.el8.noarch
mysql-common-8.0.26-1.module_el8.4.0+915+de215114.x86_64
mysql-8.0.26-1.module_el8.4.0+915+de215114.x86_64

Mysql を削除します。

dnf remove mysql* 

削除した後、再びインストールを試みたらできました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0