使用 MySQL 5.6 安装干净的 Trusty Tar 可能包含损坏的软件包

使用 MySQL 5.6 安装干净的 Trusty Tar 可能包含损坏的软件包

我尝试在我的 vagrant box 上安装 mysql-server-5.6ubuntu/trusty64 然而它可以与此一起使用盒子。除了其他 sources.list 之外,我找不到任何区别。但我不知道为什么会出现此错误,因为第一个框是官方 ubuntu 映像并使用主 sources.list....

sudo apt-get install mysql-server-5.6

Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
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
Processing triggers for ureadahead (0.100.0-16) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

清除并重新安装不会改变输出。配置时将“root”的密码留空不会改变任何内容。/var/lib/mysql清除后手动删除不会产生任何影响。 /var/lib/mysql设置全新安装时似乎不存在,所以这应该不是问题。

/var/log/mysql/error.log 是这个,但我不知道它是什么意思:

2015-09-29 18:05:21 6911 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
2015-09-29 18:05:21 6911 [Note] Plugin 'FEDERATED' is disabled.
2015-09-29 18:05:21 6911 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-09-29 18:05:21 6911 [Note] InnoDB: The InnoDB memory heap is disabled
2015-09-29 18:05:21 6911 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-09-29 18:05:21 6911 [Note] InnoDB: Compressed tables use zlib 1.2.8
2015-09-29 18:05:21 6911 [Note] InnoDB: Using Linux native AIO
2015-09-29 18:05:21 6911 [Note] InnoDB: Not using CPU crc32 instructions
2015-09-29 18:05:21 6911 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-09-29 18:05:21 6911 [Note] InnoDB: Completed initialization of buffer pool
2015-09-29 18:05:21 6911 [Note] InnoDB: Highest supported file format is Barracuda.
2015-09-29 18:05:21 6911 [Note] InnoDB: 128 rollback segment(s) are active.
2015-09-29 18:05:21 6911 [Note] InnoDB: Waiting for purge to start
2015-09-29 18:05:21 6911 [Note] InnoDB: 5.6.19 started; log sequence number 1626097
ERROR: 1062  Duplicate entry 'innodb' for key 'PRIMARY'
2015-09-29 18:05:21 6911 [ERROR] Aborting

2015-09-29 18:05:21 6911 [Note] Binlog end
2015-09-29 18:05:21 6911 [Note] InnoDB: FTS optimize thread exiting.
2015-09-29 18:05:21 6911 [Note] InnoDB: Starting shutdown...
2015-09-29 18:05:23 6911 [Note] InnoDB: Shutdown completed; log sequence number 1626107
2015-09-29 18:05:23 6911 [Note] /usr/sbin/mysqld: Shutdown complete

ERROR: 1062 Duplicate entry 'innodb' for key 'PRIMARY'似乎是导致错误的原因之一?我在 Ubuntu Launchpad 上发现了一个错误,但它从未得到修复,只是“过期”了。

答案1

这可能是由于 MySQL Server 5.6 内存不足造成的。尝试在 Vagrant 中为虚拟机添加更多 RAM:

config.vm.provider "virtualbox" do |v|
    v.memory = 1024
end

使用 Vagrant 1.7.4 和 ubuntu/trusty64 图像进行测试。

相关内容