Questions tagged [debconf]

Debian package configuration management system

debconf is a powerful package configuration system used by Debian and derivative distributions such as Ubuntu.

When one installs (or upgrades) any single package or a group of packages, debconf asks the packages' configuration questions all at once, and stores the user/admin preferences in a database. Later as the packages are installing, their scripts use the configuration preferences in the database to generate configuration files and otherwise do administrative tasks (e.g. set up servers to start or not start, install other software such as libdvdcss, etc.). This saves the hassle of editing configuration files by hand, and also of waiting for each individual package to install before responding to certain configuration questions.

Administrators can preset the answers to any debconf question, which will cause a subsequent installation of that package to skip asking that question, since it already knows the answer. The admin can force reconfiguration (re-asking and reconfiguring all questions related to a package) when necessary.

Debconf provides much of the machinery for the initial Debian installation process as well, making the unattended installation "preseeding" process quite effective and powerful.

38 questions
15
votes
4 answers

Handling input confirmations in Linux shell scripting

I'm writing a Linux Shell Script to automate a few things I'm doing on Ubuntu 11.04. Basically, I'm writing a shell script to install NGINX, MySQL, and PHP, and then configure everything. I know how to do everything via the command-line. However, I…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
10
votes
2 answers

debconf selections for phpmyadmin unattended installation with no webserver installed and no dbconfig-common

Wanting to install phpmyadmin from a bash script, I found it hard to get the right debconf selections in order not to have any web server installed/configured (using nginx, only apache2 and lighttpd available) and not have the phpmyadmin database…
Daniel Iancu
  • 435
  • 1
  • 5
  • 12
9
votes
4 answers

preconfigure an empty password for mysql via debconf-set-selections

I am setting up a bash script to automate the building of a LAMP environment. I am using debconf-set-selections to set options before installing mysql, phpmyadmin, etc ... It works mainly great. But the problem is that I have to set an empty…
piroux
  • 341
  • 3
  • 11
8
votes
1 answer

debconf or perl error during apt-get install

I use Linux Mint 16 and always get an error when installing a package by apt-get install: Reading package lists... Done Building dependency tree Reading state information... Done sqlitebrowser is already the newest version. 0 upgraded, 0…
Michael Knoppik
  • 203
  • 3
  • 10
7
votes
1 answer

How to read input while installing Debian package on Debian systems

I have created a small Debian package which has to take the input from the user and print it out. In order to take input from user "read" command on postinst scripts will not work on Debian systems I don't know what is the exact reason, but it…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
6
votes
2 answers

Preseeding PhpMyAdmin - skip multiselect, skip password

I am trying to automate the PhpMyAdmin installation for a Ubuntu server running NGINX and i am having trouble skipping the reconfigure-webserver multiselect prompt: Is there a reference for the possible options for each PhpMyAdmin install setting or…
user2350858
  • 681
  • 2
  • 10
  • 16
6
votes
1 answer

Including license agreement in .deb file

How can i include a license agreement interaction in a .deb file? The question Linux support for click-thru licenses only asks if its possible, but not how. Also, I'm not sure if license info of a deb package is actually something one could use... I…
Fredrik Ullner
  • 2,106
  • 2
  • 22
  • 28
5
votes
1 answer

Debconf dialog during .deb installation

I was successfully able to create a .deb installation file for Ubuntu, but I need user input to complete the configuration for the post install script. These questions are dynamic and based on the interfaces a user has on their computer. Is there a…
AndrewD
  • 258
  • 4
  • 17
3
votes
1 answer

answering package installation questions with debconf

I have a package, lets call it foo, that has a dependency which is in turn dependent on postfix. I am trying to automate the install of foo by answering the questions using debconf. The requirements for foo is that it has to be able to install and…
wc250
  • 129
  • 3
  • 10
2
votes
2 answers

Install MySQL on Ubuntu Natty without password prompt and using shell variable as password

I'm trying to install MySQL on Ubuntu Natty from a shell script. However, I keep running into one major issue: when I try to define the password outside of the shell script. Below is the code to my shell script (which I have saved in…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
2
votes
1 answer

'DEBIAN_FRONTEND=noninteractive' not working inside shell script with apt-get

I'm buildinga a docker image using a Dockerfile to build it. I have put ARG DEBIAN_FRONTEND=noninteractive in the beginning of the Dockerfile to avoid debconf warnings while building. The warnings does not show up when using apt-get install inside…
Eduardo G
  • 370
  • 4
  • 17
2
votes
0 answers

debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied

I am getting this when I build the docker image. debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied debconf: DbDriver "passwords" warning: could not write /var/cache/debconf/passwords.dat-new:…
Jolly
  • 21
  • 1
  • 5
2
votes
0 answers

Non interactive steam install on linux/debian (how to auto-accept EULA?)

I'm trying to install steam with apt non-interactively, but I can't figure out how to auto-accept the EULA during install. Using the answer here as a guide, I pre-set the required debconf parameters: $ echo steam steam/license note '' | sudo…
43Tesseracts
  • 4,617
  • 8
  • 48
  • 94
2
votes
2 answers

Why is my debian/config script not called during installation?

I want to use debconf in my debian package to get some user input. I have a debian/config file: #!/bin/sh set -e . /usr/share/debconf/confmodule db_fset dn-native-drivers/choose_port seen false db_clear db_purge db_input critical…
Eisen
  • 115
  • 2
  • 12
2
votes
1 answer

Can't properly set MySQL password from external bash script

I have two scripts - The main one that does a few different things and calls the second script, and the second script that installs MySQL. From my main script I do something like this: ... read -p "Set the password for the database [min. 4…
aborted
  • 4,481
  • 14
  • 69
  • 132
1
2 3