在Ubuntu上安裝mysql客戶端5.6

在Ubuntu上安裝mysql客戶端5.6

我正在嘗試在 Ubuntu 16.04 伺服器上安裝 mysql 5.6。我知道可用於 mysql 的軟體包版本為 5.7,但為了安裝 5.6,我執行了以下步驟

RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update -y
RUN apt-get upgrade --fix-missing -y
RUN apt-get clean 
RUN apt-get install software-properties-common -y
RUN add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
RUN apt install mysql-client-5.6 -y

這仍然給出以下錯誤

137958 [INFO] Package mysql-client-5.6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mysql-testsuite-5.7 mariadb-server-core-10.0 mariadb-client-10.0
  mysql-server-core-5.7 mysql-client-5.7
137963 [INFO] [91mE: Package 'mysql-client-5.6' has no installation candidate

從哪個儲存庫進行安裝是正確的?

相關內容