如何在 Ubuntu Minimal 12.04 中安装 MySQL?
当我尝试apt-get install mysql-server
(以 root 身份)甚至在全新安装之后apt-get update
和apt-get upgrade
全新安装时,我收到:
# Setting up mysql-server-5.5 (5.5.37-0ubuntu0.14.04.1) ...
# /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 package mysql-server-5.5 (--configure):
# subprocess installed post-installation script returned error exit status 127
# 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.
你试过这个吗
试试看,让我知道它对你有什么好处。
由于您是全新安装,请按照以下步骤进行干净卸载。
apt-get purge mysql-server :这将删除 MySQL 服务器
apt-get purge mysql-common :这将删除相关的 MySQL 文件
rm -rf /var/lib/mysql :这将删除 MySQL 的数据文件夹
rm -rf /etc/mysql
完成后,它将从您的机器中完全删除 MySQL。
现在尝试使用命令通过指定属性重新安装
apt-get install mysql-server --fix-missing --fix-broken
希望它会有所帮助