Symptoms
The error message is displayed when running apt-get upgrade
or apt-get dist-upgrade
commands:
Setting up sasl2-bin (2.1.26.dfsg1-14ubuntu0.1) ...
saslpasswd2: user not found
dpkg: error processing package sasl2-bin (--configure):
subprocess installed post-installation script returned error exit status 20
Errors were encountered while processing:
sasl2-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
Cause
Product issues:
- #PPPM-9725 Open
-
#PPP-39711 “On Ubuntu 16.04, the apt-get update and apt-get upgrade commands can now be executed without any issues if the sasl2-bin package is installed.”
Fixed in:- Plesk Obsidian 15 January 2019 (Linux)
Resolution
Please consider updating your server:
Workaround
If update is not possible for some reason you may try the following
temporary solution
Apply one of these workarounds:
If the upgrade has failed:
- Create an empty file
/etc/sasldb2
:# touch /etc/sasldb2
-
 Run again the failing command:
# dpkg –configure sasl2-bin
-
 Run again the upgrade to be sure:
# apt-get upgrade
Â
If the upgrade hasn’t been launched yet:
- Copy the db file before running the upgrade.
# cp /etc/sasldb2{,.orig}
-
 Run the upgrade, which will fail.
# apt-get update && apt-get upgrade
-
 Copy the db file back in /etc/
# cp /etc/sasldb2.orig /etc/
-
 Run apt-get upgrade again.
# apt-get upgrade