Hi,
I’m unable to download the Latest MongoDB v5.0.1 community on the Amazon Linux 1 server.
I’m following the this documentation
I’m getting the following error when I try to install MongoDB
Error: Package: mongodb-org-5.0.1-1.amzn1.x86_64 (mongodb-org-5.0)
Requires: mongodb-mongosh
Please help!
Thanks
May be your download is not complete?
What is the size of the file?
Looks like mongodb-shell is missing
Did you try to remove the file,download again and install
Hi Ramachandra,
Thanks for your reply.
Following are the steps I followed.
Created a /etc/yum.repos.d/mongodb-org-5.0.repo.repo file with the following contents.
[mongodb-org-5.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/5.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
And after that when I tried to install I’m getting the following o/p
$ sudo yum install -y mongodb-org
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 3.8 kB 00:00:00
mongodb-org-5.0 | 2.4 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:5.0.1-1.amzn1 will be installed
--> Processing Dependency: mongodb-org-database for package: mongodb-org-5.0.1-1.amzn1.x86_64
--> Processing Dependency: mongodb-mongosh for package: mongodb-org-5.0.1-1.amzn1.x86_64
--> Processing Dependency: mongodb-org-tools for package: mongodb-org-5.0.1-1.amzn1.x86_64
--> Running transaction check
---> Package mongodb-org.x86_64 0:5.0.1-1.amzn1 will be installed
--> Processing Dependency: mongodb-mongosh for package: mongodb-org-5.0.1-1.amzn1.x86_64
---> Package mongodb-org-database.x86_64 0:5.0.1-1.amzn1 will be installed
--> Processing Dependency: mongodb-org-server for package: mongodb-org-database-5.0.1-1.amzn1.x86_64
--> Processing Dependency: mongodb-org-mongos for package: mongodb-org-database-5.0.1-1.amzn1.x86_64
--> Processing Dependency: mongodb-org-shell for package: mongodb-org-database-5.0.1-1.amzn1.x86_64
--> Processing Dependency: mongodb-org-database-tools-extra for package: mongodb-org-database-5.0.1-1.amzn1.x86_64
---> Package mongodb-org-tools.x86_64 0:5.0.1-1.amzn1 will be installed
--> Running transaction check
---> Package mongodb-org.x86_64 0:5.0.1-1.amzn1 will be installed
--> Processing Dependency: mongodb-mongosh for package: mongodb-org-5.0.1-1.amzn1.x86_64
---> Package mongodb-org-database-tools-extra.x86_64 0:5.0.1-1.amzn1 will be installed
---> Package mongodb-org-mongos.x86_64 0:5.0.1-1.amzn1 will be installed
---> Package mongodb-org-server.x86_64 0:5.0.1-1.amzn1 will be installed
---> Package mongodb-org-shell.x86_64 0:5.0.1-1.amzn1 will be installed
--> Finished Dependency Resolution
Error: Package: mongodb-org-5.0.1-1.amzn1.x86_64 (mongodb-org-5.0)
Requires: mongodb-mongosh
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I guess mongodb-mongosh package is missing in the repo
Thanks
Welcome to the MongoDB Community Forums @Nikhil_Chauhan !
Unfortunately support for Amazon Linux 1 ended with the MongoDB 4.4 release per the Production Release Notes . The install documentation’s Platform Support section correctly notes that only 64-bit Amazon Linux 2 on x86_64
architecture is supported, but instructions for Amazon Linux 1 (2013.03+) are erroneously still available.
You should upgrade to Amazon Linux 2 as a fully supported platform to use with MongoDB 4.4+.
FYI Amazon also ended standard support for Amazon Linux 1 as of December 31st, 2020 and encourages upgrading to Amazon Linux 2.
Regards,
Stennie
1 Like
system
(system)
Closed
August 11, 2021, 6:35am
5
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.