安装 Debian 软件包时禁用提示 [英] Disable prompts while installing a Debian package
问题描述
如何完全禁用安装 Debian 软件包时出现的提示?我已经使用了我找到的所有选项,但仍有一些软件包仍在提示.
How can I totally disable the prompts that appear while installing a Debian package? I've used all the options that I've found but there are some packages that are still prompting.
我正在使用这个命令:
apt-get -y --allow-unauthenticated --force-yes -o DPkg::Options::="--force-overwrite" -o DPkg::Options::="--force-confdef" install x11-common
为什么x11-common
包还在提示?我怎样才能摆脱这些提示?
Why is the x11-common
package still prompting? How can I get rid of these prompts?
推荐答案
你没有提供关于这是什么提示的任何细节,但我猜它是 debconf
提示配置问题.
You don't provide any details about what prompt this is, but I am guessing it is debconf
prompting for configuration questions.
如果是这样,您可以将 debconf
设置为非交互模式.例如,通过执行 dpkg-reconfigure debconf
然后它将对所有内容使用默认值.
If so, you can set debconf
to noninteractive mode. For example, by doing dpkg-reconfigure debconf
and then it will use the defaults for everything.
这篇关于安装 Debian 软件包时禁用提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!