【问题标题】:Vagrant provision cannot finish流浪供给无法完成
【发布时间】:2021-03-24 19:46:09
【问题描述】:

我正在尝试运行vagrant provision,但我无法使用apt-get 安装软件包。这是我得到的错误:

Configuring libc6:amd64 ├────────────────────────┐│││ There are services installed on your system which need to be restarted    ││ when certain libraries, such as libpam, libc, and libssl, are upgraded.   ││ Since these restarts may cause interruptions of service for the system,   ││ you will normally be prompted on each upgrade for the list of services    ││ you wish to restart.  You can choose this option to avoid being││ prompted; instead, all necessary restarts will be done for you││ automatically so you can avoid being asked questions on each library││ upgrade.││││ Restart services during package upgrades without asking?││││<Yes><No>│││└───────────────────────────────────────────────────────────────────────────┘

我认为错误来自这一行:

sudo apt-get install -yq libpq-dev python-dev --allow-unauthenticated -qq

我已尝试添加DEBIAN_FRONTEND=noninteractive

sudo DEBIAN_FRONTEND=noninteractive pt-get install -yq libpq-dev python-dev --allow-unauthenticated -qq

但我仍然遇到同样的错误。有任何想法吗?我在 vagrant. 中使用 Ubuntu 18.04

【问题讨论】:

标签: ubuntu vagrant apt-get


【解决方案1】:

作为最后的手段并出于测试目的,您可以将 apt-get 命令更改为:

apt-get -force-yes

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-24
    相关资源
    最近更新 更多