我遇到了一个非常令人沮丧的问题,我按照sudo apt-get install mongodb-10gen
10gen 的安装说明在 ubuntu 64 位上安装 mongodb,但它总是安装 32 版本!
如何在 Ubuntu 10.4 上强制安装 64 位版本?
Fri Jun 7 03:12:51.436 [initandlisten]
Fri Jun 7 03:12:51.436 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
Fri Jun 7 03:12:51.436 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).
Fri Jun 7 03:12:51.436 [initandlisten] ** Note that journaling defaults to off for 32 bit and is currently off.
Fri Jun 7 03:12:51.436 [initandlisten] ** See http://dochub.mongodb.org/core/32bit
Fri Jun 7 03:12:51.437 [initandlisten]
更新
尝试强制架构标志时,找不到包?我的可用包列表有问题吗?
> victorstan@li243-166:~$ sudo apt-get install -o
> apt::architecture=amd64 mongodb-10gen=2.4.4 Reading package lists...
> Done Building dependency tree Reading state information... Done E:
> Couldn't find package mongodb-10gen
请注意,当我第一次进行包更新时,会收到警告:
Reading package lists... Done
W: Duplicate sources.list entry http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen Packages (/var/lib/apt/lists/downloads-distro.mongodb.org_repo_ubuntu-upstart_dists_dist_10gen_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
更新
注意独立显示您的系统是 32 位的。在尝试修复之前,您必须检查您的 Ubuntu 是否是 32 位,在这种情况下,只需忽略 NOTE