[MDEV-6550] Missing dependency on Debian 7 (Wheezy) installation package Created: 2014-08-07  Updated: 2014-11-25  Resolved: 2014-10-05

Status: Closed
Project: MariaDB Server
Component/s: Platform Debian
Affects Version/s: 5.5.39, 10.0.13, 10.1.0
Fix Version/s: 5.5.40, 10.0.15

Type: Bug Priority: Minor
Reporter: Alexander Loginov Assignee: Sergei Golubchik
Resolution: Fixed Votes: 1
Labels: debian, packaging
Environment:

Linux Debian 7.6 64-bit on OpenVZ virtual server


Issue Links:
Blocks
is blocked by MDEV-6284 Merge downstream Debian/Ubuntu packag... Closed
Duplicate
duplicates MDEV-6750 10.0 on debian uses logger, but does ... Closed

 Description   

Have an issue during installation of MariaDB 10.1 to Linux Debian 7.6 64-bit virtual server, virtualized with OpenVZ.

The problem is in missing command "logger", which is a way to talk to syslog. Syslog is installed and i am not sure which package need to be installed for command "logger" to work. I guess, that i don't have it, because OpenVZ system images usually minimalized (some tools got removed) to reduce drive space used and memory usage. The possible solution would be:
a) Detect which package need to be installed for command "logger" to work
b) Add this package as a dependency for .deb MariaDB package (mariadb-server).

Log:

Setting up mariadb-server-10.1 (10.1.0+maria-1~wheezy) ...
[ ok ] Stopping MariaDB database server: mysqld.
/var/lib/dpkg/info/mariadb-server-10.1.postinst: line 147: logger: command not found
/var/lib/dpkg/info/mariadb-server-10.1.postinst: line 220: logger: command not found
dpkg: error processing mariadb-server-10.1 (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.1 (= 10.1.0+maria-1~wheezy); however:
Package mariadb-server-10.1 is not configured yet.

dpkg: error processing mariadb-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mariadb-server-10.1
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mariadb-server-10.1 (10.1.0+maria-1~wheezy) ...
[ ok ] Stopping MariaDB database server: mysqld.
/var/lib/dpkg/info/mariadb-server-10.1.postinst: line 147: logger: command not found
/var/lib/dpkg/info/mariadb-server-10.1.postinst: line 220: logger: command not found
dpkg: error processing mariadb-server-10.1 (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.1 (= 10.1.0+maria-1~wheezy); however:
Package mariadb-server-10.1 is not configured yet.

dpkg: error processing mariadb-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mariadb-server-10.1
mariadb-server



 Comments   
Comment by Elena Stepanova [ 2014-08-13 ]

I didn't really check, but I suppose if 10.1 is affected, so should be 10.0 and 5.5, so I've added them to the list.

Comment by Alexander Loginov [ 2014-08-13 ]

Most likely - yes, all versions should be affected.

A quick fix is:

apt-get --reinstall install bsdutils

This command will reinstall bsdutils, which contains 'logger'. bsdutils package is cuted on some OpenVZ system templates, that's why the problem happens.

Comment by Otto Kekäläinen [ 2014-11-25 ]

Due to this bug report the package 'bsdutils' was added in the Debian control file of upstream MariaDB. I've now removed it in downstream Debian. Bsdutils is an essential package = is always installed. It does not make sense unless a particular bsdutils package version is a dependency.

In this case it seems the problem wasn't the missing bsdutils package, but that it was hampered by the platform in question. So adding bsdutils didn't actually solve it. It would be better to file a bug against OpenVZ that logger is an universally used command and MariaDB among others should have it, an removing this binary from the system is a bug.

http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=ec360dbab90227b9a72257e698498939424e7de9

Generated at Thu Feb 08 07:12:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.