我是尝试
如何通过主厨升级dpkg来处理这种情况?
dpkg_package "#{Chef::Config[:file_cache_path]}/elasticsearch-#{version}.deb" do
action :install
end
==> Modified (by you or by a script) since installation. ==> Package
distributor has shipped an updated version. What would you like to
do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the sit
我希望默认为N
答案 0 :(得分:1)
一般来说,这不应该发生,我们在$DEBIAN_FRONTEND=noninteractive
下运行所有安装命令。如果您从Chef那里看到这个,那可能意味着某些东西已经变得非常错误了。