在安装 Debian 软件包时禁用提示 [英] Disable prompts while installing a Debian package

查看:34
本文介绍了在安装 Debian 软件包时禁用提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何完全禁用安装 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆