无法在 KDE neon(Ubuntu 20.04)上安装 MySQL 8

无法在 KDE neon(Ubuntu 20.04)上安装 MySQL 8

基于 Ubuntu 20.04 全新安装的 KDE Neon。

sudo apt-get install mysql-server 

结果是:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) mysql-server:amd64 < none -> 8.0.21-0ubuntu0.20.04.4 @un puN Ib >
Broken mysql-server:amd64 Depends on mysql-server-8.0:amd64 < none | 8.0.21-0ubuntu0.20.04.4 @un uH >
  Considering mysql-server-8.0:amd64 1 as a solution to mysql-server:amd64 9999
  Re-Instated mariadb-common:amd64
  Re-Instated mariadb-client-core-10.3:amd64
  Re-Instated mysql-client-core-8.0:amd64
  Re-Instated mysql-client-8.0:amd64
    Reinst Failed early because of mysql-server-core-8.0:amd64
  Considering mysql-server-8.0:amd64 1 as a solution to mysql-server:amd64 9999
Investigating (0) mariadb-client-core-10.3:amd64 < none -> 1:10.3.22-1ubuntu1 @un uN Ib >
Broken mariadb-client-core-10.3:amd64 Conflicts on mysql-client-8.0:amd64 < none -> 8.0.21-0ubuntu0.20.04.4 @un uN >
  Considering mysql-client-8.0:amd64 0 as a solution to mariadb-client-core-10.3:amd64 0
  Holding Back mariadb-client-core-10.3:amd64 rather than change mysql-client-8.0:amd64
Investigating (0) mysql-client-core-8.0:amd64 < none -> 0.4+p20.04+git20201012.1101 @un uN Ib >
Broken mysql-client-core-8.0:amd64 Depends on mariadb-client-core-10.3:amd64 < none | 1:10.3.22-1ubuntu1 @un uH >
  Considering mariadb-client-core-10.3:amd64 0 as a solution to mysql-client-core-8.0:amd64 0
  Holding Back mysql-client-core-8.0:amd64 rather than change mariadb-client-core-10.3:amd64
Investigating (0) mysql-client-8.0:amd64 < none -> 8.0.21-0ubuntu0.20.04.4 @un uN Ib >
Broken mysql-client-8.0:amd64 Depends on mysql-client-core-8.0:amd64 < none | 0.4+p20.04+git20201012.1101 @un uH >
  Considering mysql-client-core-8.0:amd64 0 as a solution to mysql-client-8.0:amd64 0
  Holding Back mysql-client-8.0:amd64 rather than change mysql-client-core-8.0:amd64
Investigating (1) mysql-server:amd64 < none -> 8.0.21-0ubuntu0.20.04.4 @un puN Ib >
Broken mysql-server:amd64 Depends on mysql-server-8.0:amd64 < none | 8.0.21-0ubuntu0.20.04.4 @un uH >
  Considering mysql-server-8.0:amd64 1 as a solution to mysql-server:amd64 9999
  Considering mysql-server-8.0:amd64 1 as a solution to mysql-server:amd64 9999
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 : Depends: mysql-server-8.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

在 2 台不同的 PC 上进行了测试,全新安装。

这是一个普遍的问题吗?还是只是在原点损坏/取消了?

答案1

似乎是这个文件的问题,删除它让我可以安装。这是 akoladi 兼容性问题造成的。

sudo rm /etc/apt/preferences.d/50-neon-mariadb   

相关内容