Answers:
您可以将debconf配置为非交互式提示:
sudo DEBIAN_FRONTEND=noninteractive aptitude install -y -q chef
如果找到完整密钥,则还可以预先配置默认值:
echo package package/key {boolean,string} {true, some string} | sudo debconf-set-selections
sudo apt-get install package
确切地说:
echo chef chef/chef_server_url string | sudo debconf-set-selections
要找到密钥,请在安装后查找:
sudo debconf-get-selections | grep chef
# URL of Chef Server (e.g., http://chef.example.com:4000):
chef chef/chef_server_url string
debconf-get-selections
不可用,请尝试安装package debconf-utils
。
debconf-show package
,它将以与安装软件包相同的方式debconf-get-selections
(如果debconf-get-selections
缺少)显示给定软件包的所有可用选项
debconf-get-selections
可能没有提供,使用debconf-show PACKAGENAME
然后