小编DeL*_*VaN的帖子

debconf 忽略我的默认答案

我正在尝试设置默认答案以debconf自动执行 exim 配置。我正在设置新值debconf-set-selections,但debconf忽略它。我很困惑。这是我的问题的简短复制/粘贴:

root@vm-iwd:/var/cache/debconf# debconf-get-selections | grep exim4/dc_eximconfig_configtype
exim4-config    exim4/dc_eximconfig_configtype  select  mail sent by smarthost; no local mail
root@vm-iwd:/var/cache/debconf# echo "exim4-config exim4/dc_eximconfig_configtype select internet site; mail is sent and received directly using SMTP" | debconf-set-selections
root@vm-iwd:/var/cache/debconf# debconf-get-selections | grep exim4/dc_eximconfig_configtype
exim4-config    exim4/dc_eximconfig_configtype  select  internet site; mail is sent and received directly using SMTP
root@vm-iwd:/var/cache/debconf# dpkg-reconfigure exim4-config -fnoninteractive
[ ok ] Stopping MTA for restart: exim4_listener.
[ ok ] Restarting MTA: exim4.
root@vm-iwd:/var/cache/debconf# debconf-get-selections | …
Run Code Online (Sandbox Code Playgroud)

debian debconf

5
推荐指数
1
解决办法
1704
查看次数

标签 统计

debconf ×1

debian ×1