我遇到了一个非常令人沮丧的问题,我在ubuntu 64位上按照安装mongodb上的10gen安装说明sudo apt-get install mongodb-10gen
,但总是安装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
答案 0 :(得分:2)
您可以使用以下命令强制安装选择amd64版本:
sudo apt-get install -o apt::architecture=amd64 mongodb-10gen=2.4.4
(按照here的说明更新apt)