Cleanup after debconf-set-selections – no interaction installation

I have a problem with debconf-set-selections command. After I install percona server on my machine root password is located in several cache files. I am not sure if i can just delete this files or entire directory. root@testing:/var/cache/debconf# grep -ir ‘superpassword’ . ./passwords.dat:Value: superpassword ./passwords.dat:Value: superpassword ./templates.dat-old:Default: superpassword ./templates.dat-old:Default: superpassword ./templates.dat:Default: superpassword ./templates.dat:Default: superpassword So … Read more

debconf-set-selection for openssh-server “disable root login” prompt

I’m trying to set up a non-interactive upgrade (Wheezy to Jessie). I get a prompt to disable root login over ssh, and I want to answer “no”. Can I preseed that using debconf-set-selection? How can I find out what the conf selection is called? I tried using debconf-get-selection and I guess the following four selections … Read more

Debian installer won’t exit after preseeded installation

I’m doing a preseeded installation that involves displaying debconf INFO messages right inside the debian installer. At the end of the late_command, I’m expecting the system to eject the installation cdrom, and reboot my instance. The problem is that instead of behaving this way, it gets back to the debian installer menu, and to finish … Read more

MySQL installation with Ansible on Debian Wheezy

As the title suggests, I am trying to install MySQL Server 5.5 on Debian with Ansible. Since this needs to be a silent installation, I provide the root password before the installation with debconf module. Here’s the output for this: changed: [nqdo-net] => (item={‘value’: {‘type’: ‘password’, ‘name’: ‘mysql-server/root_password’, ‘value’: u’XXXXthisismyrandomandlongpasswordXXXX’}, ‘key’: ‘root_password’}) changed: [nqdo-net] => … Read more

How do you determine correct debconf-set-selections, I am interested in exim specifically, but would like to know the general way [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 7 years ago. Improve this question I need to configure exim non interactively but I’m having trouble determining the question answer key value pairs. I would like to know … Read more

debconf ssh install variable names

I am writing a bash shell script that sets up a server. To prevent it asking for e.g. the mysql server root password I use debconf-set-selections <<< ‘mysql-server mysql-server/root_password password roooot’ debconf-set-selections <<< ‘mysql-server mysql-server/root_password_again password roooot’ and of course I use the -y parameter for apt-get install. Now when installing ssh on Ubuntu 14.04 … Read more

Does debconf-set-selections automatically deletes values from debconf database once they are used?

Consider the following typescript: # export DEBIAN_FRONTEND=”noninteractive” # sudo debconf-set-selections <<< “mysql-community-server mysql-community-server/remove-data-dir boolean true” # echo GET mysql-community-server/remove-data-dir | debconf-communicate 0 true # apt purge mysql-* … # echo GET mysql-community-server/remove-data-dir | debconf-communicate 10 mysql-community-server/remove-data-dir doesn’t exist # sudo debconf-set-selections <<< “mysql-server mysql-server/root_password password 123456” # sudo debconf-set-selections <<< “mysql-server mysql-server/root_password_again password 123456” # … Read more

Debian 9 automated install (OpenVZ) hangs on two different dialog screens

After redoing the installation by hand, I have more information, so therefor I am editing my post completely so it’s better readable and hopefully someone can provide a workable solution or workaround for this issue. I am using an OpenVZ container and was trying to do an automated install of Debian 9 (Stretch), however that … Read more

MySQL cluster unattended installation

I would like to install MySQL cluster without manual intervention. I tried following the steps on the official guide but couldn’t quite get it to work. What I have so far… DEBIAN_FRONTEND=noninteractive sudo apt-get install -y debconf-utils # set mysql configs echo “mysql-apt-config mysql-apt-config/select-server select mysql-cluster-7.6” | sudo debconf-set-selections echo “mysql-apt-config mysql-apt-config/select-tools select Disabled” | … Read more

Debconf broke after system failure

I have some serious problems with one of my web servers running debian wheezy. It seem that last week the server center had an error which caused the machine to shutdown suddenly. Since then some files seem to have gone corrupt. sudo apt-get install -f Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen…. … Read more