I'm running on Ubuntu 20.04 on Circle CI "machine" executor. Today I see that:
sudo apt-get install -y pkg1 pkg2
is throwing this warning:
W: --force-yes is deprecated, use one of the options starting with --allow instead
I'm not using "--force-yes". Where is this coming from? Even
sudo apt-get update
throws the same warning.
One can supply arguments to
apt-get
in at least three ways:apt-get --force-yes
;-o
CLI arguments with Configuration Item, e.g.apt-get -o "APT::Get::force-yes=true"
; or/etc/apt/apt.conf
.If you don't see set arguments specified in your
apt-get
calls, you probably want to check/etc/apt/apt.conf
,/etc/apt/apt.conf.d/*
, or any other sources ofapt-get
configuration files.Note that
--force-yes
is dangerous and you may want to remove this options from yourapt-get
configuration files.