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

How do you remove configuration settings from debconf

I've tried this approach mentioned in many places, but it fails with the following error message: sudo echo PURGE | debconf-communicate mirrorsync debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission…
Jesse Barnum
  • 6,507
  • 6
  • 40
  • 69
0
votes
1 answer

Creating deb package with debconf postints

I am begginer in creating deb packgaes. I created deb package with answers for user. But when i run sudo apt install ./mypackge.deb I get the same errors Setting up test (0.0) ... Can't exec "/var/lib/dpkg/info/test.config": No such file or…
0
votes
1 answer

Ubuntu Preseed and Templating

I'm loading and executing this bash file from my preseed file on Ubuntu 18.04.1. The install works perfectly and my bash file is downloaded and executes but with errors. Error message: "activation/ask does not exist". I tried troubleshooting this…
user3323307
  • 243
  • 4
  • 13
0
votes
1 answer

dpkg-deb --build : debconf fails when I use db_input

I am trying to build a package using dpkg-deb --build command. When I try to use db_input, it fails : dpkg-deb --build audionet-0.0.8b/ dpkg-deb: building package `audionet' in `audionet-0.0.8b.deb'. lintian audionet-0.0.8b.deb W: audionet:…
doom
  • 3,276
  • 4
  • 30
  • 41
0
votes
1 answer

debian/config do not produce anything

I am trying to make a debian package ask questions to users I am using debuild to build the package I have a config and a templates file in debian directory config file: #!/bin/sh # Exit on error set -e # Source debconf library. .…
0
votes
1 answer

debconf-set-selections not working with phpmyadmin

I'm trying to create an script to install a LAMP server automatically and unatended in debian. The thing is that I realized that debconf-set-selections seems to be not working with phpmyadmin. In fact, if I run.. debconf-get-selections | grep…
JFValdes
  • 426
  • 8
  • 19
0
votes
1 answer

can't install runit after DEBIAN_FRONTEND=noninteractive install -y gcc

I hope to install gcc and runnit automatically. But when I "sudo apt-get install gcc" it comes up a dialog to make choose the configuration. So I use sudo DEBIAN_FRONTEND=noninteractive apt-get install -f -y --force-yes --no-install-recommends…
wonderflow
  • 665
  • 2
  • 7
  • 18
-1
votes
2 answers

Purging Debian dpkg-deb config information complately

I am creating a debian package (.deb) I wanted to get answer to some questions. Somehow, installation of newly created .deb file was not asking question after asking once, even if package is purged Setting question priority critical does not…
1 2
3