【问题标题】:How to setup aptdcon to stop asking confirmation in Ubuntu 16.04?如何设置 aptdcon 以停止在 Ubuntu 16.04 中询问确认?
【发布时间】:2018-12-07 03:50:42
【问题描述】:

在脚本中使用 aptdcon 有助于避免同时更新 linux 机器的 2 个脚本之间发生冲突。问题是这一行:

sudo aptdcon --install "python-virtualenv"

它要求确认:

The following NEW package will be installed (1): python-virtualenv Do you want to continue [Y/n]?

它曾经在 Ubuntu 14.04 上运行良好(无需请求确认)。

我怎样才能让它以非交互方式工作?

【问题讨论】:

    标签: ubuntu-16.04 apt


    【解决方案1】:

    https://askubuntu.com/a/231859/117318 在这里回答。

    yes | aptdcon --hide-terminal --install "package" 
    

    需要隐藏终端,否则管道是会导致问题。 – whitehat101 2016 年 3 月 17 日 17:58

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-02
      • 2019-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多