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