为什么安装 MySQL 服务器时会出现此错误?

为什么安装 MySQL 服务器时会出现此错误?

所以我有一个运行 Debian 7 32 位的空 VPS。VPS 刚刚创建,所以除了基本操作系统外什么都没有安装。

我运行apt-get update然后apt-get install mysql-server出现此错误:

[ ok ] Stopping MySQL database server: mysqld.
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up heirloom-mailx (12.5-2+deb7u1) ...
update-alternatives: using /usr/bin/heirloom-mailx to provide /usr/bin/mailx (mailx) in auto mode
Setting up libhtml-template-perl (2.91-1) ...
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@linux:~# 

知道发生了什么事吗?我怎样才能让 MySQL 服务器正常工作?

答案1

我相信这是因为记录器没有正确安装,重新安装 bsdutils 应该可以解决这个问题

apt-get --reinstall install bsdutils

这是 ubuntu 上的相同问题

相关内容