OK, great. So you’re on CentOS.

Can you try this?
sudo rm /etc/yum.repos.d/mongodb-org-4.4.repo
sudo yum clean all

Then edit /etc/yum.repos.d/mongodb-org-4.4.repo and add in:
[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

and then do
sudo yum install -y mongodb-org

and see if that installs it?

If that doesn’t work, you could try downloading the packages manually (there’s a link on the installation page) - MongoDB Repositories - specifically these packages and versions:
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-4.4.3-1.el7.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-database-tools-extra-4.4.3-1.el7.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-mongos-4.4.3-1.el7.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-server-4.4.3-1.el7.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-shell-4.4.3-1.el7.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-tools-4.4.3-1.el7.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-cli-1.9.1.x86_64.rpm
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-database-tools-100.2.1.x86_64.rpm

Download them via wget or curl, and then yum install FILENAME, for example:
sudo yum install -y mongodb-org-4.4.3-1.el7.x86_64.rpm

I’m not sure why you’re having this issue - we’ve had a few people test on CentOS 7 and the instructions are working. :frowning:

1 Like