如何在Kubuntu 14.04中针对akonadi-backend-mysql安全地安装mysql 5.6?

这是因为安装kubuntu-desktop因未满足的依赖项而失败 。 我想我在mysql 5.6安装后丢失了我的kubuntu桌面。 我通过安装kubuntu-desktop和akonadi-backend-mysql来恢复桌面 ,这取决于mysql 5.5。

当我拿回桌面时,先前安装的MySQL 5.6已经消失,并且在/var/run/mysqld/目录中找不到这两个文件。

 /var/run/mysqld/mysqld.pid /var/run/mysqld/mysqld.sock 

我还有配置文件

 /etc/mysql/my.conf /etc/mysql/conf.d/my5.6.conf 

和数据目录中的数据库

 /var/lib/mysql/ 

我将不得不安装MySQL 5.6,但我担心的是akonadi-backend-mysql可能不适用于5.6。 我发现了那种bug 。 以下是我的一些细节:

 sudo apt-cache depends akonadi-backend-mysql [sudo] password for sithu: akonadi-backend-mysql |Depends: mysql-server-core-5.5 Depends: mariadb-server-core-5.5 |Depends: mysql-client-core-5.5 Depends: mariadb-client-core-5.5 Depends: libqt4-sql-mysql Recommends: akonadi-server Breaks: akonadi-server Replaces: akonadi-server sithu@sithu-kubuntu:~$ sudo apt-cache policy akonadi-backend-mysql akonadi-backend-mysql: Installed: 1.12.1-0ubuntu1.2 Candidate: 1.12.1-0ubuntu1.2 Version table: *** 1.12.1-0ubuntu1.2 0 500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages 100 /var/lib/dpkg/status 1.12.1-0ubuntu1 0 500 http://mm.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages sithu@sithu-kubuntu:~$ sudo apt-get install mysql-server-5.6 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mysql-server-5.6 : Depends: mysql-client-5.6 (>= 5.6.33-0ubuntu0.14.04.1) but it is not going to be installed Depends: mysql-server-core-5.6 (= 5.6.33-0ubuntu0.14.04.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. sithu@sithu-kubuntu:~$ sudo apt-get install mysql-client-5.6 mysql-client-core-5.6 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mysql-client-core-5.6 : Breaks: mysql-client-core-5.5 but 5.5.53-0ubuntu0.14.04.1 is to be installed E: Unable to correct problems, you have held broken packages. 

这会导致unmet dependencies: mysql-client-core-5.6 : Breaks: mysql-client-core-5.5 but 5.5.53-0ubuntu0.14.04.1 is to be installed

所以,我的问题是

  1. 针对akonadi-backend-mysql安装MySQL 5.6是否安全?
  2. 如何安装它而不会再次破坏我的桌面?

我的发行版是Kubuntu 14.04 LTS。

 sithu@sithu-kubuntu:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty 

我使用MySQL 5.6和5.7的function安装了MariaDB 10.1,一切都很顺利。

 sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main' sudo apt-get update sudo apt-get install mariadb-server