What does "Generating database keys, it may take some time, please wait..." on setup means?

To generate very strong security, we create database encryption keys before the setup starts. This action takes place when the message “Generating database keys, it may take some time, please wait…” is shown.

The time a secure key is created depends on the size of the entropy pool of /dev/random. Entropy is generated by environmental noise collected from device drivers and other sources. If the pool is empty, entropy has to be generated. The best way to create strong passwords in a short period of time is to open another console and type something or run an script.

e.g.:

perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++';

A permanent solution is to create more entropy in you system by using rng-tools:

sudo apt-get install rng-tools
nano /etc/default/rng-tools
add the line: HRNGDEVICE=/dev/urandom
/etc/init.d/rng-tools start

We try to speed up the key generation in the future.