问题原文
原帖链接 · Kevin Buchs · CC BY-SA 4.0
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.
已采纳解答
原帖链接 · mforsetti · CC BY-SA 4.0
Today I see that:
sudo apt-get install -y pkg1 pkg2is throwing this warning:
W: --force-yes is deprecated, use one of the options starting with --allow instead
One can supply arguments to apt-get in at least three ways:
- using its specific CLI arguments, e.g.
apt-get --force-yes; - using
-oCLI arguments with Configuration Item, e.g.apt-get -o "APT::Get::force-yes=true"; or - using its configuration files, e.g.:
inAPT { Get { force-yes "true"; }; };/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 of apt-get configuration files.
Note that --force-yes is dangerous and you may want to remove this options from your apt-get configuration files.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
