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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mariadb-10.1 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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/
Adding 'diversion of /usr/share/
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://
Get:2 http://
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_
Unpacking libopts25:amd64 (1:5.18.12-3) ...
Selecting previously unselected package ntp.
Preparing to unpack .../ntp_
Unpacking ntp (1:4.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.
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-
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-
openssl set to manually installed.
sudo is already the newest version (1.8.19p1-
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-
mariadb-common mariadb-server-10.1 mariadb-
socat unhide unhide.rb
Suggested packages:
dovecot-gssapi dovecot-pgsql dovecot-sqlite dovecot-ldap
dovecot-
libsql-
postfix-ldap postfix-pcre postfix-lmdb sasl2-bin postfix-cdb
The following packages will be REMOVED:
mysql-client-5.7 mysql-client-
mysql-
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-
mariadb-
mariadb-
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://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
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-
Removing mysql-server-5.7 (5.7.19-
update-
dpkg: mysql-client-
mysql-client-5.7 depends on mysql-client-
Removing mysql-client-
dpkg: mysql-client-5.7: dependency problems, but removing anyway as you requested:
dbconfig-mysql depends on default-
Package default-
Package virtual-
Package mysql-client-5.7 which provides virtual-
Removing mysql-client-5.7 (5.7.19-
Selecting previously unselected package mariadb-
(Reading database ... 322086 files and directories currently installed.)
Preparing to unpack .../mariadb-
Unpacking mariadb-client-10.1 (10.1.25-
Selecting previously unselected package mariadb-common.
Preparing to unpack .../mariadb-
Unpacking mariadb-common (10.1.25-
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../libreadline
Unpacking libreadline5:amd64 (5.2+dfsg-3build1) ...
Selecting previously unselected package mariadb-
Preparing to unpack .../mariadb-
Unpacking mariadb-
(Reading database ... 322151 files and directories currently installed.)
Removing mysql-server-
Selecting previously unselected package liblockfile-bin.
(Reading database ... 322054 files and directories currently installed.)
Preparing to unpack .../0-liblockfi
Unpacking liblockfile-bin (1.14-1) ...
Selecting previously unselected package liblockfile1:amd64.
Preparing to unpack .../1-liblockfi
Unpacking liblockfile1:amd64 (1.14-1) ...
Selecting previously unselected package galera-3.
Preparing to unpack .../2-galera-
Unpacking galera-3 (25.3.19-2ubuntu4) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../3-libdbi-
Unpacking libdbi-perl (1.636-1build1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../4-libjemall
Unpacking libjemalloc1 (3.6.0-9.1) ...
Selecting previously unselected package mariadb-
Preparing to unpack .../5-mariadb-
Unpacking mariadb-
Selecting previously unselected package socat.
Preparing to unpack .../6-socat_
Unpacking socat (1.7.3.1-2) ...
Setting up mariadb-common (10.1.25-
update-
Selecting previously unselected package mariadb-
(Reading database ... 322353 files and directories currently installed.)
Preparing to unpack .../00-
/var/lib/mysql: found previous version 5.7
The file /var/lib/
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-
Selecting previously unselected package rkhunter.
Preparing to unpack .../01-
Unpacking rkhunter (1.4.2-6) ...
Selecting previously unselected package postfix-sqlite.
Preparing to unpack .../02-
Unpacking postfix-sqlite (3.1.4-4) ...
Selecting previously unselected package postfix.
Preparing to unpack .../03-
Unpacking postfix (3.1.4-4) ...
Selecting previously unselected package bsd-mailx.
Preparing to unpack .../04-
Unpacking bsd-mailx (8.1.2-
Selecting previously unselected package dovecot-core.
Preparing to unpack .../05-
Unpacking dovecot-core (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-imapd.
Preparing to unpack .../06-
Unpacking dovecot-imapd (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-lmtpd.
Preparing to unpack .../07-
Unpacking dovecot-lmtpd (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package libmysqlclient2
Preparing to unpack .../08-
Unpacking libmysqlclient2
Selecting previously unselected package dovecot-mysql.
Preparing to unpack .../09-
Unpacking dovecot-mysql (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-pop3d.
Preparing to unpack .../10-
Unpacking dovecot-pop3d (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package dovecot-sieve.
Preparing to unpack .../11-
Unpacking dovecot-sieve (1:2.2.27-2ubuntu2) ...
Selecting previously unselected package getmail4.
Preparing to unpack .../12-
Unpacking getmail4 (4.53.0-1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../13-
Unpacking libdbd-mysql-perl (4.041-1) ...
Selecting previously unselected package libterm-
Preparing to unpack .../14-
Unpacking libterm-
Selecting previously unselected package mariadb-client.
Preparing to unpack .../15-
Unpacking mariadb-client (10.1.25-
Selecting previously unselected package mariadb-server.
Preparing to unpack .../16-
Unpacking mariadb-server (10.1.25-
Selecting previously unselected package postfix-doc.
Preparing to unpack .../17-
Unpacking postfix-doc (3.1.4-4) ...
Selecting previously unselected package postfix-mysql.
Preparing to unpack .../18-
Unpacking postfix-mysql (3.1.4-4) ...
Selecting previously unselected package unhide.
Preparing to unpack .../19-
Unpacking unhide (20130526-1) ...
Selecting previously unselected package unhide.rb.
Preparing to unpack .../20-
Unpacking unhide.rb (22-2) ...
Setting up dovecot-core (1:2.2.27-2ubuntu2) ...
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Creating config file /etc/dovecot/
Created symlink /etc/systemd/
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/
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/
[ 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/
Creating config file /etc/dovecot/
Setting up libterm-
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/
Processing triggers for systemd (232-21ubuntu5) ...
Setting up dovecot-imapd (1:2.2.27-2ubuntu2) ...
Creating config file /etc/dovecot/
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libmysqlclient2
Setting up libreadline5:amd64 (5.2+dfsg-3build1) ...
Setting up postfix-sqlite (3.1.4-4) ...
grep: /etc/postfix/
Adding sqlite map entry to /etc/postfix/
Setting up libdbi-perl (1.636-1build1) ...
Setting up postfix (3.1.4-4) ...
Created symlink /etc/systemd/
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/
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:
setting mailbox_size_limit: 0
setting recipient_
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/
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-
Setting up dovecot-mysql (1:2.2.27-2ubuntu2) ...
Setting up mariadb-
Setting up bsd-mailx (8.1.2-
update-
Setting up postfix-mysql (3.1.4-4) ...
Adding mysql map entry to /etc/postfix/
Setting up libdbd-mysql-perl (4.041-1) ...
Setting up mariadb-client-10.1 (10.1.25-
Setting up mariadb-client (10.1.25-
Setting up mariadb-server-10.1 (10.1.25-
Installing new version of config file /etc/apparmor.
Installing new version of config file /etc/init.d/mysql ...
Installing new version of config file /etc/logrotate.
Installing new version of config file /etc/mysql/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
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/
Active: failed (Result: timeout) since Sun 2017-08-06 18:29:03 EDT; 39ms ago
Process: 23304 ExecStart=
Process: 23213 ExecStartPre=
Process: 23208 ExecStartPre=
Process: 23207 ExecStartPre=
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-
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.
[ 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-
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-
ProcVersionSign
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.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.10ubuntu2
apt 1.4
SourcePackage: mariadb-10.1
Title: package mariadb-server-10.1 10.1.25-
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.