在安装Debian软件包时禁用提示 [英] Disable prompts while installing a Debian package
问题描述
如何在安装Debian软件包时完全禁用出现的提示,我已经使用了我发现的所有选项,但还有一些仍然提示的软件包。
我使用这个命令:
apt-get -y --allow-unauthenticated --force- yes -o DPkg :: Options :: = - force-overwrite-o DPkg :: Options :: = - force-confdefinstall x11-common
为什么x11-common包仍然提示?如何摆脱这些提示?
提前感谢
- Victor
您不提供任何关于这是什么提示的详细信息,但我猜这是 debconf
提示配置问题。
如果是,可以将 debconf
设置为非交互模式。例如,通过执行 dpkg-reconfigure debconf
,然后它将使用所有的默认值。
/ p>
How can i disable totally 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.
I'm using this command:
apt-get -y --allow-unauthenticated --force-yes -o DPkg::Options::="--force-overwrite" -o DPkg::Options::="--force-confdef" install x11-common
Why the x11-common package is still prompting? how can i get rid of these prompts?
Thanks in advance
--Victor
You don't provide any details about what prompt this is, but I am guessing it is debconf
prompting for configuration questions.
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.
Regards.
这篇关于在安装Debian软件包时禁用提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!