我正在尝试安装,flashybrid但是当我输入apt-get install flashybrid命令时,出现此错误:
root@user-desktop:/home/user# apt-get install flashybrid
Reading package lists... Done
Building dependency tree
Reading state information... Done
flashybrid is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up flashybrid (0.15+nmu2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked …Run Code Online (Sandbox Code Playgroud) 运行更新管理器后,会弹出一个 debconf 窗口(标题为“配置 grub-pc”),要求我选择适合GRUB install devices我的系统的选项。我最近没有对 grub 或文件系统进行任何更改,而且我不记得上次进行更改时选择了哪些选项。
我怎么知道要选择什么?我假设错误的答案可能会导致我的系统无法启动。
这是 debconf 对话框:

这是选择“帮助”时显示的窗口和文本:

我正在尝试构建 Ansible Playbook 以在 Linode 上部署一些 Ubuntu 12.04 服务器,但我的问题似乎是 Ubuntu 问题。当我运行 apt-get 或 aptitude 的不同组合时,我总是会收到以下对话框,我必须对此做出回应。

我希望从命令行回答这个问题,这样它就不会中断自动部署。有任何想法吗?
我当前的命令如下。请注意,我正在尝试设置 DEBIAN_FRONTEND:
#!/bin/bash
echo 'DEBIAN_FRONTEND="noninteractive"' >> /etc/profile
echo 'DEBIAN_FRONTEND="noninteractive"' >> ~/.profile
source /etc/profile
source ~/.profile
# This next line is the one that pops up the dialog
sudo aptitude -y install iptables-persistent
# Need this to fix an issue with the package post-install (this works fine.)
sudo sed \
-i 's/\(modprobe -q ip6\?table_filter\)/\1 || true/g' \
/var/lib/dpkg/info/iptables-persistent.postinst; \
sudo aptitude install iptables-persistent
Run Code Online (Sandbox Code Playgroud) 今天一直在做ubuntu服务器的自动部署。我在apt-get upgrade尝试升级到新内核时遇到了服务器自动更新的问题。日志如下所示:
Setting up linux-image-3.2.0-24-generic (3.2.0-24.39) ...
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
(...)
Run Code Online (Sandbox Code Playgroud)
然后提出一个问题:
Package configuration
??????????????????????????????????? ???????????????????????????????????
? A new version of /boot/grub/menu.lst is available, but the version ?
? installed currently has been locally modified. ?
? ?
? What would you like to do about menu.lst? ?
? ?
? install the package maintainer's version ?
? keep the local version currently installed ?
? show the differences between the …Run Code Online (Sandbox Code Playgroud) 我目前正在摆弄使用 ansible 用我选择的配置/应用程序等设置我的机器......我遇到了 Steam 的绊脚石,它是许可协议。我一直在尝试使用 debconf 来预先接受它。
这是steam源中的相关文件之一:http : //bazaar.launchpad.net/~ubuntu-branches/ubuntu/utopic/steam/utopic/view/head :/ debian/preinst
我已经尝试echo steam steam/question select "I AGREE" | sudo debconf-set-selections了一大堆其他非常相似的命令,也包括尝试设置所见的许可证。
这是输出sudo debconf-show steam:
steam/purge:
* steam/license:
* steam/question: I AGREE
我尝试过的一切都导致 apt-get 认为我已经预先不同意许可协议,并且在我能够安装 Steam 之前我必须删除这些条目。有没有人有任何想法?
我想为无人值守安装准备一个iso。所以我生成了一个 preeseed 文件来自动运行安装程序。是否可以wget直接在第一个用户的主目录中下载 bash 脚本并使用 bash 运行它(其中第一个用户是安装程序创建的用户帐户)?preseed 文件中的命令是什么样的?
我想共同了解如何使用 debconf-show 的结果和 debconf 设置选择来通过命令行或在 shell 脚本中预配置 deb 包
例如
如果我使用
sudo debconf-get-selections | grep java7 > result;cat result
Run Code Online (Sandbox Code Playgroud)
我得到以下内容
oracle-java7-installer shared/present-oracle-license-v1-1 note
oracle-java7-installer oracle-java7-installer/local string
oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true
oracle-java7-installer shared/error-oracle-license-v1-1 error
oracle-java7-installer oracle-java7-installer/not_exist error
Run Code Online (Sandbox Code Playgroud)
正确的 debconf 设置选择行如何配置安装过程中出现的两个对话框?
一般来说,debconf 集选择的正确语法如何,我假设不仅有 true 或 false 以及 yes 或 no 等布尔值
我想还有更多其他示例,如果 lightdm 和 gdm 通过 bash 脚本安装,则如何选择默认桌面管理器。
是否有一种通用的经过验证的方法来确定 debconf 包的正确值,并编写适当的 bash 脚本来安装 webupt8 java 包之类的东西,并预先选择用户通常会要求的值?
第一个登录进程名称似乎设置为-bash,但是如果我使用 subshell 则它变为bash. 例如:
root@nowere:~# echo $0
-bash
root@nowere:~# bash
root@nowere:~# echo $0
bash
Run Code Online (Sandbox Code Playgroud)
-bash 导致某些脚本失败,例如 . /usr/share/debconf/confmodule
root@nowere:~# echo $0
-bash
root@nowere:~# bash
root@nowere:~# echo $0
bash
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么$0设置为-bash?
我正在创建一个脚本来下载和安装一些程序,并在整个过程中无需交互即可调整它们的设置。
到目前为止好,但现在我卡在virtualbox-ext-pack:它停止的全过程,并等待,直到VirtualBox的PUEL被接受或拒绝(类似ttf-mscorefonts-installer,steam等等)。
因为在这个答案中找到了一个带有单线ttf-mscorefonts-installer的解决方案,但由于我不熟悉debconf(并且调查gkdebconf也没有让我进一步),我不知道使用什么命令来安装virtualbox-ext-pack无人值守。