【发布时间】:2016-01-27 00:02:03
【问题描述】:
我正在尝试使更新完全非交互式。(在 ubuntu 14.04.3 LTS 上) 我认为使用这种类型的命令会很容易:
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get upgrade -q -y --force-yes && apt-get dist-upgrade -q -y --force-yes
但不...我总是有这样的问题:
Configuration file '/etc/cloud/cloud.cfg'
==> 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 situation
The default action is to keep your current version.
*** cloud.cfg (Y/I/N/O/D/Z) [default=N] ?
那么你知道我如何自动接受默认值吗?
【问题讨论】:
-
这个网站是为编程问题。我们不是一般的操作系统/软件技术支持。
-
我认为问如何使 apt 非交互是一个有效的问题
-
我们最后应该弄清楚是否还需要superuser.com。