如何完全禁用安装 Debian 软件包时出现的提示,我已经使用了我找到的所有选项,但仍有一些软件包仍在提示。
我正在使用这个命令:
apt-get -y --allow-unauthenticated --force-yes -o DPkg::Options::="--force-overwrite" -o DPkg::Options::="--force-confdef" install x11-common
Run Code Online (Sandbox Code Playgroud)
为什么x11-common包还在提示?我怎样才能摆脱这些提示?
提前致谢
- 胜利者
编辑:只是为了澄清,提示不是“是/否”提示,是彩色屏幕(典型的两色屏幕)中的开放问题,但我想设置这些问题的默认选项
我正在尝试创建一个脚本,强制 Debian Lenny 安装以安装最新版本的 CRAN R。在安装过程中,似乎 libc6 已升级,并且安装需要交互确认可以重新启动三个服务(mysql、exim4、cron )。此过程必须无人值守,因为它在 Amazon 的 Elastic Map Reduce (EMR) 机器上运行。但我的选择不多了。这是我尝试过的一些事情:
这个前面的问题似乎正是我要找的。所以我设置了我的安装脚本如下:
# set my CRAN repos... yes, I know there's a new convention where to put these.
echo "deb http://cran.r-project.org/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://cran.r-project.org/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
# set the dpkg.cfg options per the previous SuperUser question
echo "force-confold" | sudo tee -a /etc/dpkg/dpkg.cfg
echo "force-confdef" | sudo tee -a /etc/dpkg/dpkg.cfg
export DEBIAN_FRONTEND=noninteractive
# …Run Code Online (Sandbox Code Playgroud)