我在ubuntu vps上尝试安装mysql-server失败了一段时间
在安装过程中进行全新安装(完全清除所有与mysql相关的软件包)时,它要求设置root密码,然后显示错误屏幕,其中包括:
设置MySQL管理用户的密码时发生错误。发生这种情况的原因可能是该帐户已具有密码,或者是由于与MySQL服务器的通讯问题。
Unpacking mysql-server (from .../mysql-server_5.5.34-0ubuntu0.12.04.1_all.deb) ...
Processing triggers for man-db ...
Setting up libmysqlclient18 (5.5.34-0ubuntu0.12.04.1) ...
Setting up libdbd-mysql-perl (4.020-1build2) ...
Setting up mysql-client-core-5.5 (5.5.34-0ubuntu0.12.04.1) ...
Setting up mysql-client-5.5 (5.5.34-0ubuntu0.12.04.1) ...
Setting up mysql-server-core-5.5 (5.5.34-0ubuntu0.12.04.1) ...
Setting up mysql-server-5.5 (5.5.34-0ubuntu0.12.04.1) ...
131130 18:01:34 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 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
Processing triggers for libc-bin ...
No apport report written because the error message indicates its a followup error from a previous failure.
ldconfig deferred processing now taking place
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
在我意识到错误日志中没有提到apparmor之前,我尝试了一些涉及apparmor相关内容的修复程序,这与很多其他遇到类似问题的人不同。
在此问题上的任何帮助将不胜感激。
编辑:
在此之后,任何尝试继续或配置安装的尝试都将遇到进一步的错误消息
供您参考:我已经很好地解决了这个问题,并找到了原因:简单地说,如果您像我一样,将/ tmp(或默认映射到/ tmp的任何mysql tmp-dir映射到一个不兼容的分区)(例如ntfs-3g或其他同样不兼容的东西),您将遇到问题。这不是唯一似乎对ntfs分区有问题的程序,即使它能够容纳所有相同的文件,也无法容纳某些特殊的文件类型(我认为,套接字,管道,设备,秋天但是,请尝试将tmp移回ext4分区,这应该可以解决该问题!:)
—
osirisgothra 2014年