apt-get 无法在 arm 平台(Odroid XU4)上为 Ubuntu 17.04 安装 mongodb

apt-get 无法在 arm 平台(Odroid XU4)上为 Ubuntu 17.04 安装 mongodb

我想明确指出这不是一个重复的问题。

我一直试图在 Ubuntu 17.04 上运行的 odroid XU4(类似 raspberry)上安装 mongodb,使用命令“sudo apt-get install -y mongodb”

输出如下:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'mongodb' has no installation candidate

以下是输出sudo apt-get update

Hit:1 http://ports.ubuntu.com zesty InRelease
Hit:2 http://ports.ubuntu.com zesty-backports InRelease
Hit:3 http://ports.ubuntu.com zesty-proposed InRelease
Hit:4 http://ppa.launchpad.net/random-stuff/ppa/ubuntu wily InRelease
Hit:5 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu wily     InRelease
Hit:6 http://ports.ubuntu.com zesty-security InRelease
Hit:7 http://ports.ubuntu.com zesty-updates InRelease
Hit:8 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu zesty InRelease
Hit:9 http://ports.ubuntu.com/ubuntu-ports zesty InRelease
Ign:10 http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 InRelease
Hit:11 http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 Release
Hit:12 https://dev2day.de/pms jessie InRelease
Ign:13 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Hit:14 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release
Reading package lists... Done

以下是输出uname -m

armv7l

以下是输出dpkg --print-architecture

armhf

以下是输出apt-cache policy mongodb mongodb-tools mongodb-org

mongodb:
  Installed: (none)
  Candidate: (none)
  Version table:
N: Unable to locate package mongodb-tools
N: Unable to locate package mongodb-org

我已经完成以下操作:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt update

我也尝试了以下帖子中的说明:在 Ubuntu 17.04 上安装 MongoDB结果如下:

> sudo apt install mongodb-clients
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mongodb-clients is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
However the following packages replace it:
  mongo-tools

E: Package 'mongodb-clients' has no installation candidate

我也尝试过:

> sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
> echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
> sudo apt-get update
> sudo apt-get install -y mongodb-enterprise
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 E: Unable to locate package mongodb-enterprise

还在互联网上找到了许多其他东西,但我没有主意了。有人能提示一下吗?

谢谢 !

答案1

仅适用于 17.04 之前的 Ubuntu 版本

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \ --recv 0C49F3730359A14518585931BC711F9BA15703C6

回显“deb [ arch=amd64,arm64,ppc64el,s390x ] \ http://repo.mongodb.com/apt/ubuntuxenial/mongodb-enterprise/3.4 multiverse” \ | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list

sudo apt-get 更新

sudo apt-get install -y mongodb-enterprise

对于 Ubuntu 17.04

尝试下载以下内容https://fastdl.mongodb.org/linux/mongodb-linux-arm64-ubuntu1604-3.6.1.tgz您必须手动安装它。

相关内容