数据库
首页 > 数据库> > mysql – debconf:无法初始化前端:对话框

mysql – debconf:无法初始化前端:对话框

作者:互联网

我正在使用packer构建我自己的ubuntu VM来托管Atlas并且我正在使用packer构建template.json来测试它是否会成功,如果我使用packer push template.json我收到此错误的时候我运行mysql.sh脚本.

virtualbox-iso: debconf: unable to initialize frontend: Dialog
    virtualbox-iso: debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
    virtualbox-iso: debconf: falling back to frontend: Readline
    virtualbox-iso: Configuring mysql-server-5.6
    virtualbox-iso: ----------------------------
    virtualbox-iso:
    virtualbox-iso: While not mandatory, it is highly recommended that you set a password for the
    virtualbox-iso: MySQL administrative "root" user.
    virtualbox-iso:
    virtualbox-iso: If this field is left blank, the password will not be changed.
    virtualbox-iso:

debconf中我缺少的是什么:

谢谢.

解决方法:

你能加吗?

export DEBIAN_FRONTEND="noninteractive"

在运行脚本之前

标签:json,ubuntu,mysql,packer
来源: https://codeday.me/bug/20190528/1168010.html