我正在尝试在oracle linux 7上安装mariaDB但是我有这个错误:
我运行此命令yum install mariadb mariadb-server mysql
来安装mariadb,这是输出:
--> Finished Dependency Resolution
Error: Package: 1:mariadb-5.5.52-1.el7.x86_64 (ol7_latest)
Requires: mariadb-libs(x86-64) = 1:5.5.52-1.el7
Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.35-3.el7
Available: 1:mariadb-libs-5.5.37-1.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.37-1.el7_0
Available: 1:mariadb-libs-5.5.40-1.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.40-1.el7_0
Available: 1:mariadb-libs-5.5.40-2.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.40-2.el7_0
Available: 1:mariadb-libs-5.5.41-2.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.41-2.el7_0
Available: 1:mariadb-libs-5.5.44-1.el7_1.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.44-1.el7_1
Available: 1:mariadb-libs-5.5.44-2.0.1.el7.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.44-2.0.1.el7
Available: 1:mariadb-libs-5.5.47-1.el7_2.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.47-1.el7_2
Available: 1:mariadb-libs-5.5.50-1.el7_2.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.50-1.el7_2
Available: 1:mariadb-libs-5.5.52-1.el7.i686 (ol7_latest)
~mariadb-libs(x86-32) = 1:5.5.52-1.el7
Error: Package: 1:mariadb-server-5.5.52-1.el7.x86_64 (ol7_latest)
Requires: mariadb-libs(x86-64) = 1:5.5.52-1.el7
Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.35-3.el7
Available: 1:mariadb-libs-5.5.37-1.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.37-1.el7_0
Available: 1:mariadb-libs-5.5.40-1.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.40-1.el7_0
Available: 1:mariadb-libs-5.5.40-2.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.40-2.el7_0
Available: 1:mariadb-libs-5.5.41-2.el7_0.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.41-2.el7_0
Available: 1:mariadb-libs-5.5.44-1.el7_1.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.44-1.el7_1
Available: 1:mariadb-libs-5.5.44-2.0.1.el7.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.44-2.0.1.el7
Available: 1:mariadb-libs-5.5.47-1.el7_2.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.47-1.el7_2
Available: 1:mariadb-libs-5.5.50-1.el7_2.x86_64 (ol7_latest)
mariadb-libs(x86-64) = 1:5.5.50-1.el7_2
Available: 1:mariadb-libs-5.5.52-1.el7.i686 (ol7_latest)
~mariadb-libs(x86-32) = 1:5.5.52-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我是否需要运行其他命令?或者无法在oracle linux 7上安装mariadb。
提前致谢
答案 0 :(得分:3)
我安装的Oracle Linux 7.3(组“Infrastructure Server”)附带了一些mysql软件包,可能会阻止安装mariadb软件包。您需要删除它们才能安装mariadb软件包:
$ sudo yum remove mysql-community-libs mysql-community-common
然后我就可以安装mariadb包了。希望有所帮助!
答案 1 :(得分:0)
Oracle Linux 7 Anaconda安装程序在安装期间默认启用MySQL 5.5存储库,因此安装MySQL软件包而不是MariaDB软件包。
要在安装期间禁用此功能,请取消选择" Server-Mysql" “安装摘要”屏幕上的“安装源”页面中的存储库如果禁用repo,Anaconda将仅使用基本安装程序存储库中的软件包,即MariaDB软件包。