mysql - debconf : unable to initialize frontend: Dialog

标签 mysql json ubuntu packer

我正在使用 packer 构建我自己的 ubuntu VM主持Atlas我正在使用 packer build 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"

在运行脚本之前

关于mysql - debconf : unable to initialize frontend: Dialog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34773745/

相关文章:

sql-server - 使用 Entity Framework 发布 Web API 时出错

android - 我们可以在启动模拟器之前通过控制台设置模拟器 RAM 大小吗?

MySQL order by field() 和变量列表

php - 谁能告诉我为什么不在以下 php 代码中执行查询?

ios - 显示播客列表中的剧集列表

c# - 是否可以在 ServiceStack.Text 中为开放泛型类型设置自定义(反)序列化器?

python - 在 wsgi.py 中无法访问环境变量

json - 在bash中使用awk合并两个Json文件

Mysql 创建函数不起作用

php - 如何从 SQL 选择数据作为 INT 而不是字符串?