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
2
votes
1 answer

phpmyadmin automated vagrant setup no password error

I am trying to set a vagrant box and have it automatically install Nginx, php, mysql and phpmyadmin as a development box. The first three install and work no problem but phpmyadmin always returns an error saying there is no access for root using no…
Gavin
  • 711
  • 1
  • 5
  • 13
1
vote
1 answer

Scripting LAMP to be installed with predefinied root password

I would like to write the following Bash Script: When installing LAMP like this, it would ask me a root password for the MySQL installation. I would like to bash script it. sudo apt-get install lamp-server^ Can I do it like this to pass the…
Houman
  • 64,245
  • 87
  • 278
  • 460
1
vote
0 answers

how to purge debconf configuration for a specific package?

I am using debconf to configure a deb package. The problem now is that it does not raise the configuration while use dpkg -i a2s_12-3456_amd64.deb ('a2s' is the name of my package). If I use dpkg-reconfigure a2s the configuration process is brought…
xrfang
  • 1,754
  • 4
  • 18
  • 36
1
vote
2 answers

GitHub Action Ansible check ubuntu:focal hangs on setting up tzdata without dialog

I am using this GitHub Action: https://github.com/roles-ansible/check-ansible-ubuntu-focal-action name: Ansible check ubuntu:focal on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 -…
Amedee Van Gasse
  • 7,280
  • 5
  • 55
  • 101
1
vote
4 answers

dpkg-reconfigure openssh-server in ansible playbook

In an ansible (ver. 2.10) playbook I would need to invoke the dpkg-reconfigure openssh-server command to recreate SSH server keys. - name: Create new SSH host's keys shell: dpkg-reconfigure openssh-server notify: restart sshd The problem is…
Roberto Jobet
  • 153
  • 4
  • 15
1
vote
0 answers

Why doesn't MySQL root with a blank password work in shell scripts?

For many years the debconf-set-selections utility has been used by Debian/Ubuntu sysadmins to input a password for the MySQL root user before APT begins the actual package installation (e.g. apt install mysql-server). However, if you install MySQL…
Jesse Nickles
  • 1,435
  • 1
  • 17
  • 25
1
vote
2 answers

Rundeck debconf-set-selection:

I'm using Rundeck 3.2.6-20200427 and set up a job for installing packages. Because rundeck runs noninteractive I need to preset some parameters for installing packages (in my case iptables-persistent). Before installing the package I run that…
Floh
  • 33
  • 9
1
vote
1 answer

Is there a way to fix this "debconf-show" path issue?

I am trying to set a root password for a MYSQL DB using ansible. Iam using debconf however, it errors me out saying: Failed to find required executable debconf-show in paths: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin My yaml file contains: -…
James Ukilin
  • 851
  • 2
  • 12
  • 17
1
vote
1 answer

How do I gracefully exit a deb install from a maintainer script?

I am building a deb that uses debconf to ask if the user really wants to install it (simple boolean template). What is the best way to exit out of the install gracefully, so that at a later time the user could apt-get install pkg-name and be…
KernelSanders
  • 387
  • 3
  • 10
1
vote
0 answers

Error executing bash script throught phing ssh

Running a script that install mysql through phing ssh task give me this output : debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling…
sakhunzai
  • 13,900
  • 23
  • 98
  • 159
1
vote
3 answers

Is there any setting in the preseed file to ignore the Release 'Valid_Until' option?

I have just configured a preseed file to include a local repository. # Debian mirrors d-i apt-setup/local0/comment string local mirror d-i apt-setup/local0/repository string http:// d-i apt-setup/local0/key string http:// The…
alvaroalo
  • 11
  • 1
  • 3
1
vote
1 answer

is there any necessity to use deconf to get the user input in debian packages

I am creating a sample debian package, where i need to get the user input which is a number , usually all the user input is taken in postinst script, it would be simple for me if i use simple read command to get what i want, Is is mandatory to use…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
1
vote
2 answers

db_input in postinst doesn't work

I have a problem with postinst script, I have to ask root password for MySQL to create some user for my application. I know, it's bad practice to use db_input in postinst however I really need it. Why this postinst doesn't work when I install my app…
Lazy
  • 267
  • 1
  • 8
  • 18
0
votes
1 answer

Owner and permissions in debian

I've just installed DEBIAN today and installed XXXXX application. This application create ~/.XXXXX/ folder configuration. I find that the ~/.XXXXX folder is owned by root. Applying any change for instance, then closing and reopening XXXXX, should…
iattila
  • 135
  • 1
  • 2
  • 6
0
votes
2 answers

How to write Bash script to install and configure Postfix on Debian-based distros

How do I write a Bash script to install and configure Postfix (for Debian or Ubuntu). This is how I install Postfix: sudo apt-get install postfix Then I re-configure it: sudo dpkg-reconfigure postfix How do I make a script which automatically…
Venkat
  • 4,259
  • 4
  • 23
  • 20