Comment 4 for bug 278743

Revision history for this message
Jan Dittberner (jan-dittberner) wrote :

You're right, update-cracklib is called in postinst. update-cracklib fails if /etc/cracklib/cracklib.conf doesn't exist:

if [ -r "/etc/cracklib/cracklib.conf" ]
then
    . /etc/cracklib/cracklib.conf
else
    echo Error: cannot read configuration file /etc/cracklib/cracklib.conf
    exit 1
fi

maybe this error was ignored by the postinst script in the version currently in Ubuntu. 2.8.13-1 (in Debian Sid) adds a set -e to postinst which should stop this wrong behavior. Another reason for this problem could be a missing dictionary (no dictionary package installed at the machine). The cracklib dictionary is built from the dictionaries installed and user dictionaries in /usr/local/share/dict /usr/local/dict by default.