Vagrant provision:shell脚本在Debian提示错误处安装mariadb-server

我正在寻找配备MariaDB 10的Debian 8.2 Virtualbox VM。

我使用以下内容:

sudo export DEBIAN_FRONTEND=noninteractive sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $ROOTDBPWD" sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password $ROOTDBPWD" sudo debconf-set-selections <<< "mariadb-server mariadb-server/oneway_migration boolean true" sudo apt-get install mariadb-server -y 

运行时,脚本停止,我认为由于最后一个提示“oneway_migration布尔真”,因为我可以看到这个提示未经格式化在控制台(即使“导出DEBIAN_FRONTEND =非交互”)。

这是脚本停止之前得到的:

 ──────────┤ Configuring mariadb-server-10.0├──────────── MariaDB is a drop-in replacement for MySQL. It will use your current configuration file (my.cnf) and current databases. Note that MariaDB has some enhanced features, which do not exist in MySQL and thus migration back to MySQL might not always work, at least not as automatically as migrating from MySQL to MariaDB. Really migrate to MariaDB? <Yes><No> 

任何人都可以给我一个这方面的手,或分享他们提供一个shell脚本MariaDB 10(或更多)的方式?

感谢和问候

问题是问题不是来自mariadb-server包,问题来自mariadb-server-10.0 (第一个安装后面的问题)。

改变您的debconf设置select为:

 sudo debconf-set-selections <<< "mariadb-server-10.0 mariadb-server/root_password password $ROOTDBPWD" sudo debconf-set-selections <<< "mariadb-server-10.0 mariadb-server/root_password_again password $ROOTDBPWD" sudo debconf-set-selections <<< "mariadb-server-10.0 mariadb-server/oneway_migration boolean true"