流浪规定无法完成

Vagrant provision cannot finish

我正在尝试 运行 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

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

apt-get -force-yes