debconf忽略了我的默认启动器

我试图设置debconf默认答案来自动执行eximconfiguration。 我使用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 | grep exim4/dc_eximconfig_configtype exim4-config exim4/dc_eximconfig_configtype select mail sent by smarthost; no local mail 

你看看debconf是如何忽略我的select? 我试图直接编辑/var/cache/debconf/config.dat并尝试使用DEBCONF_DB_OVERRIDE ,这些方法都DEBCONF_DB_OVERRIDE

我在Debian 7.6,新鲜的安装。

有任何想法吗 ?

删除/etc/exim4/update-exim4.conf.conf将会诀窍。 dpkg-reconfigure会查找它,并且由于它的缺失会根据debconf-get-selections生成一个新的。

好的,就像Zoredache说的那样,修改debconf的默认答案并不是解决scheme。

所以要改变我的configuration,我做了以下几点:

  • 更改/etc/exim4/update-exim4.conf.conf(例如, sed -i "s/dc_eximconfig_configtype=.*/dc_eximconfig_configtype='internet'/" /etc/exim4/update-exim4.conf.conf
  • 运行dpkg-reconfigure exim4-config -fnoninteractive