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

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

这是因为由于未满足依赖关系,安装 kubuntu-desktop 失败。我猜我在安装 mysql 5.6 后丢失了我的 kubuntu 桌面。我通过安装恢复了桌面kubuntu 桌面akonadi-后端-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 兼容。我发现报告的此类错误。以下是我的一些详细信息:

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. 安装 MySQL 5.6 安全吗akonadi-backend-mysql
  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

答案1

我安装了玛拉雅数据库10.1 具有 MySQL 5.6 和 5.7 的功能,一切运行良好。

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

相关内容