2017-01-09 29 views
0

我想在Oracle的Linux 7上安裝MariaDB的安裝MariaDB的,但我有此錯誤:如何在Oracle Linux的7

我跑這個命令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的安裝MariaDB的7

感謝

+0

顯然,問題是由於某種原因它在搜索'x86-64'時發現了'x86-32'。你想把它安裝在'i686'還是'x86_64'上?嘗試運行'sudo yum clean all',然後重複嘗試,但刪除'mysql'(以防萬一,不應該需要它):'yum install mariadb mariadb-server' – elenst

+0

我的服務器是x86_64 –

+0

I嘗試什麼ü說,sudo yum清理所有,然後yum安裝mariadb mariadb-server,但仍然得到相同的錯誤 –

回答

2

我安裝的Linux的Oracle 7.3附帶一些mysql的包這可能會阻止MariaDB的軟件包的安裝(組「基礎設施服務器」)。您需要刪除它們以安裝mariadb軟件包:

$ sudo yum remove mysql-community-libs mysql-community-common 

然後我才能夠安裝mariadb軟件包。希望有所幫助!

+0

這對我有用。 – Doggo

0

Oracle Linux 7 Anaconda安裝程序在安裝過程中默認啓用MySQL 5.5存儲庫,因此將安裝MySQL包而不是MariaDB包。

要在安裝過程中禁用此選項,請在安裝摘要屏幕上的安裝源頁面中取消選擇「Server-Mysql」存儲庫。如果禁用repo,Anaconda將只使用基本安裝程序存儲庫中的包,即MariaDB包。