我正在尝试在ubuntu 14.04上为非交互式mysql 5.7社区服务器安装创建一个shell调用.根据使用debconf-set-selections的各种来源应该允许这样的安装但我无法启动非交互式dpkg安装程序.
Bellow是我试图用于非交互式安装的env变量
vagrant@default-ubuntu-1404:/sql$ echo $DEBIAN_FRONTEND
noninteractive
vagrant@default-ubuntu-1404:/sql$ echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7 | sudo debconf-set-selections
Run Code Online (Sandbox Code Playgroud)
以下是系统的所有mysql-apt-config设置
vagrant@default-ubuntu-1404:/sql$ sudo debconf-get-selections | grep mysql
mysql-apt-config mysql-apt-config/select-tools select workbench-6.2 workbench-6.3 connector-python-2.0 connector-python-2.1 router-2.0 mysql-utilities-1.5 mysql-tools
mysql-apt-config mysql-apt-config/select-preview select
mysql-apt-config mysql-apt-config/repo-distro select ubuntu
mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7
mysql-apt-config mysql-apt-config/repo-url string http://repo.mysql.com/apt/
# Choices: MySQL Server (Currently selected: mysql-5.7), MySQL Tools & Connectors (Currently selected: Enabled), MySQL Preview Packages (Currently selected: Disabled), Ok
mysql-apt-config mysql-apt-config/select-product select
mysql-apt-config mysql-apt-config/repo-codename select trusty
mysql-apt-config mysql-apt-config/unsupported-platform select …Run Code Online (Sandbox Code Playgroud)