Can not install Mongo DB 3.2 on Centos 7 > No package mongodb-org available. issue

915 views
Skip to first unread message

Andrey Lavkov

unread,
Mar 11, 2016, 5:59:47 PM3/11/16
to mongodb-user
Hello all, Can not install mongo database 3.2 on centos 7 at all . Im installin it on Amazon AWS and follwo official Amazon doco: https://docs.mongodb.org/v3.2/tutorial/install-mongodb-on-amazon/#install-mongodb

I've created file as per insctruction - called /etc/yum.repos.d/mongodb-org-3.2.repo and place follwing stuff in it
------------------------
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.2/x86_64/
gpgcheck=0

enabled=1
------------------------
Then run the command:               sudo yum install -y mongodb-org

Getting follow out put, please help to resolve 

OUTPUT:
-----------------------------------------------------------------------------
Loaded plugins: fastestmirror, replace
base                                                                                    | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                    | 2.4 kB  00:00:00
http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

extras                                                                                  | 3.4 kB  00:00:00
ius                                                                                     | 2.2 kB  00:00:00
mongodb-org-3.2                                                                         | 2.5 kB  00:00:00
Not using downloaded repomd.xml because it is older than what we have:
  Current   : Tue Mar  8 16:43:57 2016
  Downloaded: Tue Mar  8 16:42:21 2016
mysql-connectors-community                                                              | 2.5 kB  00:00:00
mysql-tools-community                                                                   | 2.5 kB  00:00:00
mysql56-community                                                                       | 2.5 kB  00:00:00
updates                                                                                 | 3.4 kB  00:00:00
ius/x86_64/primary_db                                                                   | 126 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: centos.uberglobalmirror.com
 * epel: fedora.mirror.serversaustralia.com.au
 * extras: centos.uberglobalmirror.com
 * ius: ius.mirror.digitalpacific.com.au
 * updates: centos.uberglobalmirror.com
No package mongodb-org available.
Error: Nothing to do
-----------------------------------------------------------------------------


Cheers

Andrey

Rhys Campbell

unread,
Mar 14, 2016, 8:58:54 AM3/14/16
to mongodb-user
It's throwing an error on a different repo. Disable the one using this url...

Martin Feineis

unread,
Mar 28, 2016, 3:20:43 PM3/28/16
to mongodb-user
I've got the same problem

Wan Bachtiar

unread,
Apr 15, 2016, 1:25:43 AM4/15/16
to mongodb-user

I’ve got the same problem

Hi Martin,

The error on the original post was caused by a different repo file that the link couldn’t be reached. You should be able to find the unwanted repo configs in /etc/yum.repos.d/*.repo or occasionally at the end of /etc/yum.conf. If the unwanted repo config file is in /etc/yum.repos.d/ it can be removed from visibility to yum by deleting or renaming it to something other than .repo.

You can then follow the instructions to Install MongoDB on Amazon to complete the installation.

If you still have difficulties on installing MongoDB, can you provide the following:

  • Specific AWS image and version. i.e. CentOS-7
  • The installation steps that you did
  • The content of /etc/yum.repos.d/mongodb-org-3.2.repo
  • The error message that you are getting

Regards,

Wan.

Reply all
Reply to author
Forward
0 new messages