无法在 Ubuntu 16.04.2 上安装 MariaDB

无法在 Ubuntu 16.04.2 上安装 MariaDB

当我尝试使用 apt install 在 Ubuntu Server 16.04.2 上安装 MariaDB 服务器时mariadb 服务器,我收到以下回复:

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:
 mariadb-server-10.0 : Depends: libdbi-perl but it is not going to be installed
                       Depends: mariadb-client-10.0 (>= 10.0.29-0ubuntu0.16.04.1) but it is not going to be installed
                       Recommends: libhtml-template-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我确实尝试过使用相同操作系统的另一个实例(虚拟机,相同硬件)。在那里我没有遇到任何问题,MariaDB 似乎安装得很好。

您能否建议我如何修复该问题并在我的 Ubuntu 上安装 MariaDB 服务器?

我已经尝试过了:

sudo apt-get autoclean
sudo apt-get autoremove
sudo apt update
sudo apt-get --fix-broken install
sudo apt upgrade
sudo dpkg --configure -a

谢谢。

答案1

您是否尝试过包括依赖项?像这样:

sudo apt-get install mariadb-server libdbi-perl mariadb-client-10.0

关于这个问题已经有一个类似的问题了。请查看此链接: 添加 PPA 后如何解决未满足的依赖关系?

问候

相关内容