Public bug reported:

root@debianix:/# dpkg-reconfigure dash
root@debianix:/# dpkg-reconfigure dash
root@debianix:/# dpkg-reconfigure dash
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to 
/usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to 
/usr/share/man/man1/sh.distrib.1.gz by bash'
root@debianix:/# service apparmor stop
root@debianix:/# update-rc.d apparmor remove
root@debianix:/# apt-get remove apparmor apparmor-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'apparmor-utils' is not installed, so not removed
The following package was automatically installed and is no longer required:
  libapparmor-perl
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  apparmor snapd
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 39.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 322206 files and directories currently installed.)
Removing snapd (2.25+17.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Removing apparmor (2.11.0-2ubuntu4) ...
Processing triggers for man-db (2.7.6.1-2) ...
root@debianix:/# 
root@debianix:/# apt-get -y install ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libapparmor-perl
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libopts25
Suggested packages:
  ntp-doc apparmor
The following NEW packages will be installed:
  libopts25 ntp
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 625 kB of archives.
After this operation, 1,964 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libopts25 amd64 
1:5.18.12-3 [57.0 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 ntp amd64 
1:4.2.8p9+dfsg-2ubuntu1.2 [568 kB]
Fetched 625 kB in 0s (1,605 kB/s)
Selecting previously unselected package libopts25:amd64.
(Reading database ... 322146 files and directories currently installed.)
Preparing to unpack .../libopts25_1%3a5.18.12-3_amd64.deb ...
Unpacking libopts25:amd64 (1:5.18.12-3) ...
Selecting previously unselected package ntp.
Preparing to unpack .../ntp_1%3a4.2.8p9+dfsg-2ubuntu1.2_amd64.deb ...
Unpacking ntp (1:4.2.8p9+dfsg-2ubuntu1.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Processing triggers for systemd (232-21ubuntu5) ...
Setting up libopts25:amd64 (1:5.18.12-3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up ntp (1:4.2.8p9+dfsg-2ubuntu1.2) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Processing triggers for systemd (232-21ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@debianix:/# service sendmail stop; update-re.d -f sendmail remove
Failed to stop sendmail.service: Unit sendmail.service not loaded.
No command 'update-re.d' found, did you mean:
 Command 'update-rc.d' from package 'init-system-helpers' (main)
update-re.d: command not found
root@debianix:/# service sendmail stop; update-re.d -f sendmail remove
root@debianix:/# apt-get -y install postfix postfix-mysql postfix-doc 
mariadb-client mariadb-server openssl openmail4 rkhunter binutils dovecot-imapd 
dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd sudo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package openmail4
root@debianix:/# apt-get -y install postfix postfix-mysql postfix-doc 
mariadb-client mariadb-server openssl getmail4 rkhunter binutils dovecot-imapd 
dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd sudo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
binutils is already the newest version (2.28-3ubuntu1).
binutils set to manually installed.
openssl is already the newest version (1.0.2g-1ubuntu11.2).
openssl set to manually installed.
sudo is already the newest version (1.8.19p1-1ubuntu1.2).
The following packages were automatically installed and are no longer required:
  libapparmor-perl libevent-core-2.0-5
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  bsd-mailx dovecot-core galera-3 libdbd-mysql-perl libdbi-perl libjemalloc1
  liblockfile-bin liblockfile1 libmysqlclient20 libreadline5
  libterm-readkey-perl mariadb-client-10.1 mariadb-client-core-10.1
  mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 postfix-sqlite
  socat unhide unhide.rb
Suggested packages:
  dovecot-gssapi dovecot-pgsql dovecot-sqlite dovecot-ldap
  dovecot-managesieved dovecot-solr libmldbm-perl libnet-daemon-perl
  libsql-statement-perl mariadb-test tinyca procmail postfix-pgsql
  postfix-ldap postfix-pcre postfix-lmdb sasl2-bin postfix-cdb
The following packages will be REMOVED:
  mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7
  mysql-server-core-5.7
The following NEW packages will be installed:
  bsd-mailx dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql
  dovecot-pop3d dovecot-sieve galera-3 getmail4 libdbd-mysql-perl libdbi-perl
  libjemalloc1 liblockfile-bin liblockfile1 libmysqlclient20 libreadline5
  libterm-readkey-perl mariadb-client mariadb-client-10.1
  mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1
  mariadb-server-core-10.1 postfix postfix-doc postfix-mysql postfix-sqlite
  rkhunter socat unhide unhide.rb
0 upgraded, 32 newly installed, 5 to remove and 0 not upgraded.
Need to get 21.4 MB of archives.
After this operation, 1,386 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-client-10.1 amd64 10.1.25-0ubuntu0.17.04.1 [1,256 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-common all 10.1.25-0ubuntu0.17.04.1 [16.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libreadline5 amd64 
5.2+dfsg-3build1 [99.5 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-client-core-10.1 amd64 10.1.25-0ubuntu0.17.04.1 [859 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 liblockfile-bin 
amd64 1.14-1 [10.8 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 liblockfile1 amd64 
1.14-1 [6,344 B]
Get:7 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 galera-3 amd64 
25.3.19-2ubuntu4 [947 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libdbi-perl amd64 
1.636-1build1 [718 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 libjemalloc1 
amd64 3.6.0-9.1 [79.9 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-server-core-10.1 amd64 10.1.25-0ubuntu0.17.04.1 [5,138 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 socat amd64 
1.7.3.1-2 [337 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-server-10.1 amd64 10.1.25-0ubuntu0.17.04.1 [5,319 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 rkhunter all 
1.4.2-6 [198 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 postfix-sqlite 
amd64 3.1.4-4 [19.9 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 postfix amd64 
3.1.4-4 [1,138 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 bsd-mailx amd64 
8.1.2-0.20160123cvs-3 [64.4 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 dovecot-core amd64 
1:2.2.27-2ubuntu2 [2,652 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 dovecot-imapd amd64 
1:2.2.27-2ubuntu2 [144 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 dovecot-lmtpd 
amd64 1:2.2.27-2ubuntu2 [22.7 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 
libmysqlclient20 amd64 5.7.19-0ubuntu0.17.04.1 [811 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 dovecot-mysql 
amd64 1:2.2.27-2ubuntu2 [9,792 B]
Get:22 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 dovecot-pop3d amd64 
1:2.2.27-2ubuntu2 [29.0 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 dovecot-sieve amd64 
1:2.2.27-2ubuntu2 [301 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 getmail4 all 
4.53.0-1 [150 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 
libdbd-mysql-perl amd64 4.041-1 [79.0 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 
libterm-readkey-perl amd64 2.37-1 [24.4 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-client all 10.1.25-0ubuntu0.17.04.1 [12.7 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 
mariadb-server all 10.1.25-0ubuntu0.17.04.1 [12.8 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 postfix-doc all 
3.1.4-4 [877 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 postfix-mysql amd64 
3.1.4-4 [19.3 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 unhide amd64 
20130526-1 [46.6 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 unhide.rb all 
22-2 [7,826 B]
Fetched 21.4 MB in 2s (8,252 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 322208 files and directories currently installed.)
Removing mysql-server (5.7.19-0ubuntu0.17.04.1) ...
Removing mysql-server-5.7 (5.7.19-0ubuntu0.17.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide 
/etc/mysql/my.cnf (my.cnf) in auto mode
dpkg: mysql-client-core-5.7: dependency problems, but removing anyway as you 
requested:
 mysql-client-5.7 depends on mysql-client-core-5.7.

Removing mysql-client-core-5.7 (5.7.19-0ubuntu0.17.04.1) ...
dpkg: mysql-client-5.7: dependency problems, but removing anyway as you 
requested:
 dbconfig-mysql depends on default-mysql-client | virtual-mysql-client; however:
  Package default-mysql-client is not installed.
  Package virtual-mysql-client is not installed.
  Package mysql-client-5.7 which provides virtual-mysql-client is to be removed.

Removing mysql-client-5.7 (5.7.19-0ubuntu0.17.04.1) ...
Selecting previously unselected package mariadb-client-10.1.
(Reading database ... 322086 files and directories currently installed.)
Preparing to unpack .../mariadb-client-10.1_10.1.25-0ubuntu0.17.04.1_amd64.deb 
...
Unpacking mariadb-client-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../mariadb-common_10.1.25-0ubuntu0.17.04.1_all.deb ...
Unpacking mariadb-common (10.1.25-0ubuntu0.17.04.1) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../libreadline5_5.2+dfsg-3build1_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3build1) ...
Selecting previously unselected package mariadb-client-core-10.1.
Preparing to unpack 
.../mariadb-client-core-10.1_10.1.25-0ubuntu0.17.04.1_amd64.deb ...
Unpacking mariadb-client-core-10.1 (10.1.25-0ubuntu0.17.04.1) ...
(Reading database ... 322151 files and directories currently installed.)
Removing mysql-server-core-5.7 (5.7.19-0ubuntu0.17.04.1) ...
Selecting previously unselected package liblockfile-bin.
(Reading database ... 322054 files and directories currently installed.)
Preparing to unpack .../0-liblockfile-bin_1.14-1_amd64.deb ...
Unpacking liblockfile-bin (1.14-1) ...
Selecting previously unselected package liblockfile1:amd64.
Preparing to unpack .../1-liblockfile1_1.14-1_amd64.deb ...
Unpacking liblockfile1:amd64 (1.14-1) ...
Selecting previously unselected package galera-3.
Preparing to unpack .../2-galera-3_25.3.19-2ubuntu4_amd64.deb ...
Unpacking galera-3 (25.3.19-2ubuntu4) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../3-libdbi-perl_1.636-1build1_amd64.deb ...
Unpacking libdbi-perl (1.636-1build1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../4-libjemalloc1_3.6.0-9.1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-9.1) ...
Selecting previously unselected package mariadb-server-core-10.1.
Preparing to unpack 
.../5-mariadb-server-core-10.1_10.1.25-0ubuntu0.17.04.1_amd64.deb ...
Unpacking mariadb-server-core-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Selecting previously unselected package socat.
Preparing to unpack .../6-socat_1.7.3.1-2_amd64.deb ...
Unpacking socat (1.7.3.1-2) ...
Setting up mariadb-common (10.1.25-0ubuntu0.17.04.1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf 
(my.cnf) in auto mode
Selecting previously unselected package mariadb-server-10.1.
(Reading database ... 322353 files and directories currently installed.)
Preparing to unpack 
.../00-mariadb-server-10.1_10.1.25-0ubuntu0.17.04.1_amd64.deb ...
/var/lib/mysql: found previous version 5.7
The file /var/lib/mysql/debian-5.7.flag indicates a
version that cannot automatically be upgraded. Therefore the
previous data directory will be renamed to /var/lib/mysql-5.7 and
a new data directory will be initialized at /var/lib/mysql.
Please manually export/import your data (e.g. with mysqldump) if needed.
Unpacking mariadb-server-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Selecting previously unselected package rkhunter.
Preparing to unpack .../01-rkhunter_1.4.2-6_all.deb ...
Unpacking rkhunter (1.4.2-6) ...
Selecting previously unselected package postfix-sqlite.
Preparing to unpack .../02-postfix-sqlite_3.1.4-4_amd64.deb ...
Unpacking postfix-sqlite (3.1.4-4) ...
Selecting previously unselected package postfix.
Preparing to unpack .../03-postfix_3.1.4-4_amd64.deb ...
Unpacking postfix (3.1.4-4) ...
Selecting previously unselected package bsd-mailx.
Preparing to unpack .../04-bsd-mailx_8.1.2-0.20160123cvs-3_amd64.deb ...
Unpacking bsd-mailx (8.1.2-0.20160123cvs-3) ...
Selecting previously unselected package dovecot-core.
Preparing to unpack .../05-dovecot-core_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-core (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-imapd.
Preparing to unpack .../06-dovecot-imapd_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-imapd (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-lmtpd.
Preparing to unpack .../07-dovecot-lmtpd_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-lmtpd (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack .../08-libmysqlclient20_5.7.19-0ubuntu0.17.04.1_amd64.deb 
...
Unpacking libmysqlclient20:amd64 (5.7.19-0ubuntu0.17.04.1) ...
Selecting previously unselected package dovecot-mysql.
Preparing to unpack .../09-dovecot-mysql_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-mysql (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-pop3d.
Preparing to unpack .../10-dovecot-pop3d_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-pop3d (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-sieve.
Preparing to unpack .../11-dovecot-sieve_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-sieve (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package getmail4.
Preparing to unpack .../12-getmail4_4.53.0-1_all.deb ...
Unpacking getmail4 (4.53.0-1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../13-libdbd-mysql-perl_4.041-1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.041-1) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../14-libterm-readkey-perl_2.37-1_amd64.deb ...
Unpacking libterm-readkey-perl (2.37-1) ...
Selecting previously unselected package mariadb-client.
Preparing to unpack .../15-mariadb-client_10.1.25-0ubuntu0.17.04.1_all.deb ...
Unpacking mariadb-client (10.1.25-0ubuntu0.17.04.1) ...
Selecting previously unselected package mariadb-server.
Preparing to unpack .../16-mariadb-server_10.1.25-0ubuntu0.17.04.1_all.deb ...
Unpacking mariadb-server (10.1.25-0ubuntu0.17.04.1) ...
Selecting previously unselected package postfix-doc.
Preparing to unpack .../17-postfix-doc_3.1.4-4_all.deb ...
Unpacking postfix-doc (3.1.4-4) ...
Selecting previously unselected package postfix-mysql.
Preparing to unpack .../18-postfix-mysql_3.1.4-4_amd64.deb ...
Unpacking postfix-mysql (3.1.4-4) ...
Selecting previously unselected package unhide.
Preparing to unpack .../19-unhide_20130526-1_amd64.deb ...
Unpacking unhide (20130526-1) ...
Selecting previously unselected package unhide.rb.
Preparing to unpack .../20-unhide.rb_22-2_all.deb ...
Unpacking unhide.rb (22-2) ...
Setting up dovecot-core (1:2.2.27-2ubuntu2) ...

Creating config file /etc/dovecot/dovecot.conf with new version

Creating config file /etc/dovecot/dovecot-dict-auth.conf.ext with new
version

Creating config file /etc/dovecot/dovecot-dict-sql.conf.ext with new
version

Creating config file /etc/dovecot/dovecot-sql.conf.ext with new version

Creating config file /etc/dovecot/conf.d/10-auth.conf with new version

Creating config file /etc/dovecot/conf.d/10-director.conf with new
version

Creating config file /etc/dovecot/conf.d/10-logging.conf with new
version

Creating config file /etc/dovecot/conf.d/10-mail.conf with new version

Creating config file /etc/dovecot/conf.d/10-master.conf with new version

Creating config file /etc/dovecot/conf.d/10-tcpwrapper.conf with new
version

Creating config file /etc/dovecot/conf.d/15-lda.conf with new version

Creating config file /etc/dovecot/conf.d/15-mailboxes.conf with new
version

Creating config file /etc/dovecot/conf.d/90-acl.conf with new version

Creating config file /etc/dovecot/conf.d/90-plugin.conf with new version

Creating config file /etc/dovecot/conf.d/90-quota.conf with new version

Creating config file /etc/dovecot/conf.d/auth-checkpassword.conf.ext
with new version

Creating config file /etc/dovecot/conf.d/auth-deny.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-dict.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-master.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-passwdfile.conf.ext with
new version

Creating config file /etc/dovecot/conf.d/auth-sql.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-static.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-system.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-vpopmail.conf.ext with new version
Created symlink /etc/systemd/system/multi-user.target.wants/dovecot.service → 
/lib/systemd/system/dovecot.service.
Processing triggers for ufw (0.35-4) ...
Setting up liblockfile-bin (1.14-1) ...
Setting up dovecot-lmtpd (1:2.2.27-2ubuntu2) ...

Creating config file /etc/dovecot/conf.d/20-lmtp.conf with new version
Setting up unhide.rb (22-2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libjemalloc1 (3.6.0-9.1) ...
Setting up socat (1.7.3.1-2) ...
Setting up liblockfile1:amd64 (1.14-1) ...
Setting up rkhunter (1.4.2-6) ...

Creating config file /etc/default/rkhunter with new version
[ Rootkit Hunter version 1.4.2 ]
File created: searched for 176 files, found 147
Processing triggers for menu (2.1.47ubuntu1) ...
Setting up dovecot-sieve (1:2.2.27-2ubuntu2) ...

Creating config file /etc/dovecot/conf.d/90-sieve.conf with new version

Creating config file /etc/dovecot/conf.d/90-sieve-extprograms.conf with new 
version
Setting up libterm-readkey-perl (2.37-1) ...
Setting up postfix-doc (3.1.4-4) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Setting up unhide (20130526-1) ...
Setting up galera-3 (25.3.19-2ubuntu4) ...
Processing triggers for doc-base (0.10.7) ...
Processing 3 added doc-base files...
Setting up dovecot-pop3d (1:2.2.27-2ubuntu2) ...

Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version
Processing triggers for systemd (232-21ubuntu5) ...
Setting up dovecot-imapd (1:2.2.27-2ubuntu2) ...

Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libmysqlclient20:amd64 (5.7.19-0ubuntu0.17.04.1) ...
Setting up libreadline5:amd64 (5.2+dfsg-3build1) ...
Setting up postfix-sqlite (3.1.4-4) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Setting up libdbi-perl (1.636-1build1) ...
Setting up postfix (3.1.4-4) ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → 
/lib/systemd/system/postfix.service.
Adding group `postfix' (GID 135) ...
Done.
Adding system user `postfix' (UID 129) ...
Adding new user `postfix' (UID 129) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Adding group `postdrop' (GID 136) ...
Done.
setting myhostname: debianix.ga
setting alias maps
setting alias database
mailname is not a fully qualified domain name.  Not changing /etc/mailname.
setting destinations: $myhostname, debianix, debianix.ga, localhost.ga, 
localhost
setting relayhost: 
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix (main.cf) is now set up with a default configuration.  If you need to 
make changes, edit /etc/postfix/main.cf (and others) as needed.  To view 
Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
Adding systemd overrides to ensure network and name services available.
Setting up getmail4 (4.53.0-1) ...
Setting up mariadb-server-core-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Setting up dovecot-mysql (1:2.2.27-2ubuntu2) ...
Setting up mariadb-client-core-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Setting up bsd-mailx (8.1.2-0.20160123cvs-3) ...
update-alternatives: using /usr/bin/bsd-mailx to provide /usr/bin/mailx (mailx) 
in auto mode
Setting up postfix-mysql (3.1.4-4) ...
Adding mysql map entry to /etc/postfix/dynamicmaps.cf
Setting up libdbd-mysql-perl (4.041-1) ...
Setting up mariadb-client-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Setting up mariadb-client (10.1.25-0ubuntu0.17.04.1) ...
Setting up mariadb-server-10.1 (10.1.25-0ubuntu0.17.04.1) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.mysqld ...
Installing new version of config file /etc/init.d/mysql ...
Installing new version of config file /etc/logrotate.d/mysql-server ...
Installing new version of config file /etc/mysql/debian-start ...
Created symlink /etc/systemd/system/mysql.service → 
/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → 
/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → 
/lib/systemd/system/mariadb.service.
Job for mariadb.service failed because a timeout was exceeded.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
● mariadb.service - MariaDB database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: 
enabled)
   Active: failed (Result: timeout) since Sun 2017-08-06 18:29:03 EDT; 39ms ago
  Process: 23304 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER 
$_WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 23213 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && 
VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl 
set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, 
status=0/SUCCESS)
  Process: 23208 ExecStartPre=/bin/sh -c systemctl unset-environment 
_WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 23207 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d 
/var/run/mysqld (code=exited, status=0/SUCCESS)
 Main PID: 23304 (code=exited, status=0/SUCCESS)

Aug 06 18:27:30 debianix.ga systemd[1]: Starting MariaDB database server...
Aug 06 18:27:31 debianix.ga mysqld[23304]: 2017-08-06 18:27:31 1407169152743…...
Aug 06 18:29:01 debianix.ga systemd[1]: mariadb.service: Start operation tim…ng.
Aug 06 18:29:03 debianix.ga systemd[1]: Failed to start MariaDB database server.
Aug 06 18:29:03 debianix.ga systemd[1]: mariadb.service: Unit entered failed…te.
Aug 06 18:29:03 debianix.ga systemd[1]: mariadb.service: Failed with result …t'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package mariadb-server-10.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.1 (>= 10.1.25-0ubuntu0.17.04.1); 
however:
  Package mariadb-server-10.1 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
No apport report written because the error message indicates its a followup 
error from a previous failure.
                          Processing triggers for rkhunter (1.4.2-6) ...
[ Rootkit Hunter version 1.4.2 ]
File updated: searched for 177 files, found 149
Processing triggers for ufw (0.35-4) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Processing triggers for systemd (232-21ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Errors were encountered while processing:
 mariadb-server-10.1
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: mariadb-server-10.1 10.1.25-0ubuntu0.17.04.1
ProcVersionSignature: Ubuntu 4.10.0-30.34-generic 4.10.17
Uname: Linux 4.10.0-30-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
Date: Sun Aug  6 18:29:03 2017
ErrorMessage: subprocess installed post-installation script returned error exit 
status 1
InstallationDate: Installed on 2017-07-20 (17 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
Logs.var.log.daemon.log:
 
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet     = 16M
MySQLVarLibDirListing: ['aria_log.00000001', 'aria_log_control', 'ib_logfile1', 
'mysql', 'ib_logfile0', 'performance_schema', 'multi-master.info', 'ibdata1', 
'debian-10.1.flag']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.10.0-30-generic 
root=UUID=26dcba87-eac7-47f2-b5d8-7ff36d4e47e2 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.10ubuntu2
 apt  1.4
SourcePackage: mariadb-10.1
Title: package mariadb-server-10.1 10.1.25-0ubuntu0.17.04.1 failed to 
install/upgrade: subprocess installed post-installation script returned error 
exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: mariadb-10.1 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apparmor apport-package zesty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708966

Title:
  package mariadb-server-10.1 10.1.25-0ubuntu0.17.04.1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1708966/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to