英文:
Cannot following official tutorial to install mongoDB on AWS EC2
问题
我在我的AWS EC2实例上尝试安装mongoDB。
Linux版本为:
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"
我按照官方教程进行了操作:https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-amazon/,但在尝试执行yum install -y mongodb-org
时出现了错误:
上次元数据过期检查:0:24:24前,于2023年5月24日21:06:16。
错误:
问题:存在冲突的请求
- 要求安装的软件包mongodb-org-6.0.0-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 要求安装的软件包mongodb-org-6.0.1-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 要求安装的软件包mongodb-org-6.0.2-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 要求安装的软件包mongodb-org-6.0.3-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 要求安装的软件包mongodb-org-6.0.4-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 要求安装的软件包mongodb-org-6.0.5-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 要求安装的软件包mongodb-org-6.0.6-1.amzn2.x86_64需要mongodb-org-database,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.0-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.1-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.2-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.3-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.4-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.5-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- 软件包mongodb-org-database-6.0.6-1.amzn2.x86_64需要mongodb-org-server,但无法安装任何提供程序
- mongodb-org-server-6.0.0-1.amzn2.x86_64需要libcrypto.so.10()(64bit),但无法安装
- mongodb-org-server-6.0.0-1.amzn2.x86_64需要libcrypto.so.10(OPENSSL_1.0.2)(64bit),但无法安装
感谢任何帮助。
英文:
I tried to install mongoDB on my AWS EC2 instance.
The linux version is:
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"
I followed the official tutorial: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-amazon/
But got error when I tried: yum install -y mongodb-org
:
Last metadata expiration check: 0:24:24 ago on Wed May 24 21:06:16 2023.
Error:
Problem: conflicting requests
- package mongodb-org-6.0.0-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-6.0.1-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-6.0.2-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-6.0.3-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-6.0.4-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-6.0.5-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-6.0.6-1.amzn2.x86_64 requires mongodb-org-database, but none of the providers can be installed
- package mongodb-org-database-6.0.0-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- package mongodb-org-database-6.0.1-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- package mongodb-org-database-6.0.2-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- package mongodb-org-database-6.0.3-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- package mongodb-org-database-6.0.4-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- package mongodb-org-database-6.0.5-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- package mongodb-org-database-6.0.6-1.amzn2.x86_64 requires mongodb-org-server, but none of the providers can be installed
- nothing provides libcrypto.so.10()(64bit) needed by mongodb-org-server-6.0.0-1.amzn2.x86_64
- nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by mongodb-org-server-6.0.0-1.amzn2.x86_64
Any help would be appreciated.
答案1
得分: 3
编辑并将此内容添加到此文件中:
/etc/yum.repos.d/mongodb-org-6.0.repo
[mongodb-org-6.0]
name=MongoDB仓库
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
// 在下面添加此块
[mongodb-org-AL2023]
name=MongoDB仓库
baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/development/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc
然后运行此命令:
sudo yum install mongodb-org-database mongodb-org-database-tools-extra
它应该可以正常工作。
英文:
Edit and add this content to this file:
/etc/yum.repos.d/mongodb-org-6.0.repo
[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
// add this block below
[mongodb-org-AL2023]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/development/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc
then run this command:
sudo yum install mongodb-org-database mongodb-org-database-tools-extra
it should works
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论