apt-getで問題を抑制する

apt-getで問題を抑制する

スクリプトにパッケージをインストールする必要があります。このプロセスでは、いくつかの既存の構成ファイルを再作成する必要があります。DEBIAN_FRONTEND=noninteractiveandで実行しても、apt--force-yes -yはまだユーザー入力を要求します。

Configuration file `/etc/init.d/nginx'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   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 situation
 The default action is to keep your current version.
*** nginx (Y/I/N/O/D/Z) [default=N] ? 

これを作る方法完全インタラクティブではありませんか?

ベストアンサー1

試してみるyes | programdpkg-reconfigure debconf

おすすめ記事