我喜欢使用“ knife cloudstack server create ...”来构建新的VM。我的引导程序模板以“ apt-get更新”和“ apt-get -y升级”开始。
然后,升级将因以下原因而停止:
10.190.113.11 Configuration file `/etc/nscd.conf'
10.190.113.11 ==> Modified (by you or by a script) since installation.
10.190.113.11 ==> Package distributor has shipped an updated version.
10.190.113.11 What would you like to do about it ? Your options are:
10.190.113.11 Y or I : install the package maintainer's version
10.190.113.11 N or O : keep your currently-installed version
10.190.113.11 D : show the differences between the versions
10.190.113.11 Z : start a shell to examine the situation
10.190.113.11 The default action is to keep your current version.
10.190.113.11 *** nscd.conf (Y/I/N/O/D/Z) [default=N] ?
因此,实际上存在两个问题:
首先,默认情况下我可以让apt-get做某事吗?显然,没有办法提供答案。
其次,我什至不知道该问题的正确答案是什么。它要替换的配置文件来自模板。我还没有找到“ nscd”的功能。(大概“ Y”是正确的答案,但提出问题时涉及的研究令人生畏。)