Mysql

如何在 debian 擠壓上升級 percona mysql

  • December 2, 2011

正在執行適當的升級和

The following packages have been kept back:
libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5

我目前正在執行 percona mysql 5.5.15-55-log

嘗試sudo apt-get install percona-server-server-5.5我得到:

The following packages have unmet dependencies:
percona-server-server-5.5 : Depends: percona-server-client-5.5 (>= 5.5.17-rel22.1-197.squeeze) but 5.5.15-rel21.0-160.squeeze is to be installed

我不知道如何從這裡開始。

Z的更多內容:

# apt-cache policy percona-server-client-5.5
percona-server-client-5.5:
 Installed: 5.5.15-rel21.0-160.squeeze
 Candidate: 5.5.17-rel22.1-197.squeeze
 Version table:
    5.5.17-rel22.1-197.squeeze 0
       500 http://repo.percona.com/apt/ squeeze/main amd64 Packages
*** 5.5.15-rel21.0-160.squeeze 0
       100 /var/lib/dpkg/status

當我跑apt-get install percona-server-server percona-server-client

Get:1 http://repo.percona.com/apt/ squeeze/main percona-server-client all 5.5.17-rel22.1-197.squeeze [2624 B]
Get:2 http://repo.percona.com/apt/ squeeze/main percona-server-server all 5.5.17-rel22.1-197.squeeze [2736 B]

然後,如果我apt-get upgrade顯示:

The following packages have been kept back:
 libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5

嘗試apt-get install libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5我得到:

The following packages have unmet dependencies:
libmysqlclient18 : Depends: mysql-common (>= 5.5.18-1~dotdeb.1)

當然,添加 /etc/apt/sources.list:

# deb http://94.75.223.121/debian squeeze main

deb http://94.75.223.121/debian squeeze main non-free contrib
deb-src http://94.75.223.121/debian squeeze main non-free contrib

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb http://94.75.223.121/debian squeeze-updates main contrib non-free
deb-src http://94.75.223.121/debian squeeze-updates main contrib non-free

# dotdeb
# deb http://packages.dotdeb.org squeeze all
# deb-src http://packages.dotdeb.org squeeze all
deb http://mirror.us.leaseweb.net/dotdeb/ stable all
deb-src http://mirror.us.leaseweb.net/dotdeb/ stable all

# percona
deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main

我還沒有添加任何別針。

libmysqlclient18 : Depends: mysql-common (>= 5.5.18-1~dotdeb.1)

此處的此錯誤似乎強烈表明您的問題是什麼。

您似乎混合和匹配了幾個不同的儲存庫。看來您至少擁有官方、percona 和 dotdeb 儲存庫。不知何故,您似乎已經選擇了 dotdeb libmysqlclient18 版本作為安裝候選者,但這似乎需要一個由於某種原因不可用或無法安裝的包。

您可能需要進行一些適當的固定以確保從正確的儲存庫中選擇軟體包。在這種情況下,libmysqlclient18 可能需要來自 percona 儲存庫。

引用自:https://serverfault.com/questions/336838