【问题标题】:Running apt get in non interactive manner以非交互方式运行 apt get
【发布时间】:2017-05-24 05:06:13
【问题描述】:

我有一个定制的 Debian 软件包,其中有几个问题,例如 do I overwrite the config file?。我想运行 apt get 命令,并自动回答所有提示是或 y。我找不到这样的apt选项。这是可能的还是我需要更改 Debian 文件的工作方式? 提前致谢!!

【问题讨论】:

  • 你试过设置 DEBIAN_FRONTEND=noninteractive 吗?

标签: ansible ubuntu-14.04 apt-get


【解决方案1】:

您可以尝试使用expect 模块。

【讨论】:

  • Expect 在 apt 上抛出错误。说它适用于其他命令,但不适用于 apt
猜你喜欢
  • 2017-11-04
  • 2016-01-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-28
  • 2012-09-05
  • 1970-01-01
相关资源
最近更新 更多