![为什么安装 MySQL 服务器时会出现此错误?](https://linux22.com/image/1438926/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%AE%89%E8%A3%85%20MySQL%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%97%B6%E4%BC%9A%E5%87%BA%E7%8E%B0%E6%AD%A4%E9%94%99%E8%AF%AF%EF%BC%9F.png)
所以我有一个运行 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 服务器正常工作?