我已经在 Ubuntu 14.04 LTS 服务器上安装了 Mysql-(服务器/客户端)-5.6,
但对于某些程序,我需要 mysql-client(例如 automysqlbackup 和 postfix)
root@server:~# apt-get install automysqlbackup
automysqlbackup : Depends: mysql-client
所以:
root@server:~# apt-get install mysql-client mysql-server
The following packages have unmet dependencies:
mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
和:
root@server:~# apt-get install mysql-client-5.6 mysql-server-5.6
mysql-client-5.6 is already the newest version.
mysql-server-5.6 is already the newest version.
我是否需要与 5.6 一起安装 mysql-(server/client)-5.5?
答案1
如果automysqlbackup
可以与之一起工作mysql-client-5.6
(换句话说,如果它与二进制兼容mysql-client-5.6
)。
可用于为、equivs
创建虚拟包。如果它不起作用,只需卸载它们即可:mysql-client
mysql-server
安装 equivs:
sudo apt-get install equivs
从模板生成控制文件:
equivs-control mysql-client
打开
mysql-client
文件进行编辑。如果需要,请更改名称和版本:... Package: mysql-client Version: 5.6 ...
构建然后安装:
equivs-build mysql-client sudo dpkg -i mysql-client*.deb
按照相同的步骤mysql-server
。