- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个包裹,我们称之为富 ,它具有依赖关系,而依赖关系又依赖于后缀。我正在尝试自动安装 富 通过使用 debconf 回答问题。 的要求富 是它必须能够安装和配置所有东西,并且必须使用
sudo apt-get install foo
所以这样的事情是不能接受的:
DEBIAN_FRONTEND=noninteractive apt-get install -y foo
另外,请注意
富 正在全新安装的 Ubuntu 上安装。
echo "postfix postfix/mailname string your.hostname.com" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
但这没有用。问题仍然出现在安装中。
echo "postfix postfix/mailname string your.hostname.com" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get install -y postfix
和这个:
echo "postfix postfix/mailname string your.hostname.com" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get install -y postfix << _EOT
y
EOT
然后我想:
sudo apt-get install debconf-utils
echo "postfix postfix/mailname string your.hostname.com" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
sudo apt-get install foo
但是,这对于我给出的要求是 Not Acceptable 。
最佳答案
好像很奇怪,不用安装debconf-utils
为 dpkg 设置数据。
如果要阻止对话框窗口,请尝试使用 dpkg
选项:--force-confdef(force to keep default option without prompting)
--force-confold (force to keep old conf files)
最后,它会是这样的:echo "postfix postfix/mailname string your.hostname.com" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
sudo apt-get install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" foo
我希望,它会有所帮助。如果没有,请在此处通知我们。
关于ubuntu - 使用 debconf 回答软件包安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31255349/
- name: Generate required locales locale_gen: name: "{{ item }}" state: present with_items: -
我有一个包裹,我们称之为富 ,它具有依赖关系,而依赖关系又依赖于后缀。我正在尝试自动安装 富 通过使用 debconf 回答问题。 的要求富 是它必须能够安装和配置所有东西,并且必须使用 sudo a
有两种方法可以将 debconf 设置为非交互式运行: ENV DEBIAN_FRONTEND noninteractive RUN echo 'debconf debconf/frontend se
我已成功为 Ubuntu 创建 .deb 安装文件,但我需要用户输入才能完成安装后脚本的配置。这些问题是动态的,并且基于用户在其计算机上的界面。 在 Ubuntu 软件中心使用 debconf 的安装
尝试为 postfix 无人值守安装收集预置条目。在 postfix 手动安装后,我使用如下 debconf-get-selections 但输出为零。知道这里有什么失败吗? root@pzi-ub-
我在带有 ARMv8 架构的 QEMU 上运行 Debian。 root@debian:/home/kennedy# apt-get -f install Reading package lists.
我正在使用 packer 构建我自己的 ubuntu VM主持Atlas我正在使用 packer build template.json 来测试如果我使用 packer push template.j
我有非常简单的 Dockerfile FROM ubuntu:14.04 MAINTAINER XXX ARG DEBIAN_FRONTEND=noninteractive RUN sudo apt
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwa
我正在设置一个 bash 脚本来自动构建 LAMP 环境。 我正在使用 debconf-set-selections 在安装 mysql、phpmyadmin 等之前设置选项 ... 主要是效果很好。
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我正在尝试在 Ansible 中自动执行 Debian 上的 exim4 配置 —— 到目前为止我们一直在手动配置 —— 但我陷入了正常运行的阶段 dpkg-reconfigure exim4-配置。
嘿嘿。 所以我在我的树莓派上安装了 Debian,一切都很顺利,但在某个时候我的 apt-get 坏了。现在,每当我尝试安装或删除任何东西时,它都会失败并返回如下错误消息: debconf: Perl
尝试在 google cloud datalab 的 Notebook 上安装 basemap 包时 我收到以下错误。我想绘制图形,但似乎未安装 basemap 。 %bash echo 'Y' |
系统是 Ubuntu。/usr/bin/中有一个 perl,版本是 5.18.2。 在这种状态下,我尝试通过“sudo apt-get install **”安装了很多软件,一切正常。 但是几天前,我
我是一名优秀的程序员,十分优秀!