我一直在尝试安装mysql-server
2 个小时。该系统在 Ubuntu Wily 上。
日志文件中没有添加任何内容。
root@Erman:~# dpkg --configure mysql-server-5.6
Setting up mysql-server-5.6 (5.6.28-0ubuntu0.15.10.1) ...
2016-02-13 18:15:50 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-02-13 18:15:50 0 [Note] /usr/sbin/mysqld (mysqld 5.6.28-0ubuntu0.15.10.1) starting as process 25352 ...
2016-02-13 18:15:50 25352 [Note] Plugin 'FEDERATED' is disabled.
2016-02-13 18:15:50 25352 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-02-13 18:15:50 25352 [Note] InnoDB: The InnoDB memory heap is disabled
2016-02-13 18:15:50 25352 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-02-13 18:15:50 25352 [Note] InnoDB: Memory barrier is not used
2016-02-13 18:15:50 25352 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-02-13 18:15:50 25352 [Note] InnoDB: Using Linux native AIO
2016-02-13 18:15:50 25352 [Note] InnoDB: Using CPU crc32 instructions
2016-02-13 18:15:50 25352 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-02-13 18:15:50 25352 [Note] InnoDB: Completed initialization of buffer pool
2016-02-13 18:15:50 25352 [Note] InnoDB: Highest supported file format is Barracuda.
2016-02-13 18:15:50 25352 [Note] InnoDB: 128 rollback segment(s) are active.
2016-02-13 18:15:50 25352 [Note] InnoDB: Waiting for purge to start
2016-02-13 18:15:50 25352 [Note] InnoDB: 5.6.28 started; log sequence number 1626183
2016-02-13 18:15:50 25352 [Note] Binlog end
2016-02-13 18:15:50 25352 [Note] InnoDB: FTS optimize thread exiting.
2016-02-13 18:15:50 25352 [Note] InnoDB: Starting shutdown...
2016-02-13 18:15:52 25352 [Note] InnoDB: Shutdown completed; log sequence number 1626193
insserv: warning: script 'K01vncserver' missing LSB tags and overrides
insserv: warning: script 'vncserver' missing LSB tags and overrides
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.6
我已经从 upstart 切换到 systemd,现在我可以毫无问题地安装它。
该错误表明它缺少两个关于虚拟网络计算服务器 (
vncserver
) 的脚本,这些脚本应该来自 Linux 标准库 (LSB
)。尝试做一些清洁,特别是:,然后尝试再次安装。
我的想法来自:http ://help.directadmin.com/item.php?id=379 ,但我不建议随意删除假设。