Docker: Having issues installing apt-utils

前端 未结 2 446
旧巷少年郎
旧巷少年郎 2021-01-30 01:03

I am trying to install apt-utils on Docker because when I was just doing apt-get update, I was getting the error: debconf: delaying package confi

2条回答
  •  孤街浪徒
    2021-01-30 02:04

    This is not actually an error and it is safe to ignore it. I have built a large number of container images without ever having apt-utils on any of them and regardless of this warning message, all package installs go through and work normally.

    Anyway, if you want to have apt-utils - install it. It will give you this warning once and then it will disappear for future invocations of apt-get (as you can see in your own log, curl got installed without that message).

    NOTE if you install apt-utils, you will get other warnings (because now the installer can run interactive config and will attempt that and fail). To suppress those and have packages that have interactive config with their defaults, run apt-get like this DEBIAN_FRONTEND=noninteractive apt-get install -y pkgs....

提交回复
热议问题