【发布时间】: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
【问题讨论】:
-
为了测试目的,使用 apt-get -force-yes
-
已修复!谢谢!!虽然现在我也面临stackoverflow.com/questions/66776695/… :(.