force-confdef/force-confoldが指定されているにもかかわらず、aptのアップグレード時にlibpam-systemdがインタラクティブに実行されるのはなぜですか?

force-confdef/force-confoldが指定されているにもかかわらず、aptのアップグレード時にlibpam-systemdがインタラクティブに実行されるのはなぜですか?

私はaptオプション--force-confdef--force-confold

これは一般的に機能しますが、パッケージlibpam-systemd(Ubuntu 14.04の204-5ubuntu20.8)はまだ(変更された)設定ファイルを置き換えるかどうかを尋ねます。

ダイアログボックスが開くと、次のプロセスが表示されます。

  • /usr/bin/dpkg --force-confdef --status-fd 113 --configure libpam-systemd:amd64
  • /bin/sh /var/lib/dpkg/info/libpam-systemd:amd64.postinst configure 204-5ubuntu20.7
  • whiptail --backtitle Package configuration --title PAM configuration --output-fd 11 --defaultno --yesno -- One or more of the files /etc/pam.d/common-{auth,account,password,session} have been locally modified. Please indicate whether these local changes should be overridden using the system-provided configuration. If you decline this option, you will need to manage your system's authentication configuration by hand. Override local changes to /etc/pam.d/common-*? 10 200

非対話型でアップグレードを実行するにはどうすればよいですか?

ベストアンサー1

これらの設定ファイルは他のシステムで処理されることがわかりました。

The whiptail prompts are done through debconf, which means that a DEBIAN_FRONTEND=none setting will give you the desired results for a non-interactive upgrade.

したがって、非対話式にアップグレードするにはDEBIAN_FRONTEND=none

おすすめ記事