我使用 CircleCI 作为持续集成解决方案,我正在尝试安装 MariaDB 10.1.20。
我运行这个命令:
sudo DEBIAN_FRONTEND=noninteractive aptitude install -y mariadb-server
但是我收到此错误:
Setting up mariadb-server-5.5 (5.5.54-1ubuntu0.14.04.1) ...
Stopping MariaDB database server mysqld
...done.
dpkg: error processing package mariadb-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libdbd-mysql-perl (4.025-1ubuntu0.1) ...
Setting up libhtml-template-perl (2.95-1) ...
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-5.5 (>= 5.5.54-1ubuntu0.14.04.1); however:
Package mariadb-server-5.5 is not configured yet.
dpkg: error processing package mariadb-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.19-0ubuntu6.7) ... Processing triggers for ureadahead (0.100.0-16) ... No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: mariadb-server-5.5 mariadb-server E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up mariadb-server-5.5 (5.5.54-1ubuntu0.14.04.1) ... * Stopping MariaDB database server mysqld ...done. dpkg: error processing package mariadb-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mariadb-server: mariadb-server depends on mariadb-server-5.5 (>=
5.5.54-1ubuntu0.14.04.1); however: Package mariadb-server-5.5 is not configured yet.
dpkg: error processing package mariadb-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mariadb-server-5.5 mariadb-server
有任何想法吗?
答案1
我已经解决了,但我知道我遇到了不同的问题。
首先,为了解决这个问题,你必须使用以下命令从你的服务器中删除所有默认的 mysql如何彻底卸载 MySQL?
然后,从 MariaDB 站点的链接中,只有一个有效,而且是保加利亚语。https://downloads.mariadb.org/mariadb/repositories/#mirror=hostag&distro=Ubuntu&distro_release=trusty--ubuntu_trusty
我遇到了其他问题。我不知道如何隐藏这个关于设置 root 密码的提示窗口。无论如何,这是另一个问题。