[SERVER-26692] E: Unable to locate package mongodb-org Created: 19/Oct/16  Updated: 20/Oct/16  Resolved: 19/Oct/16

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Suresh Veeranala Assignee: Ramon Fernandez Marina
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

I have tried installing with the steps mentioned in https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ on my Ubuntu 14.04 LTS (trusty). I have followed all the steps, but when running the install command I still get the error

UBUNTU:~$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mongodb-org



 Comments   
Comment by Suresh Veeranala [ 20/Oct/16 ]

I'm so sorry. I was hand typing the commands for learning. I might be
mistyping something. With the exact commands I'm able to install the
packages. Thanks for your response.


suresh

Comment by Suresh Veeranala [ 19/Oct/16 ]

I also tried the same steps but not able to install the package. Would you
give me some clue to debug this and fix it?

On Wed, Oct 19, 2016 at 8:29 AM, Ramon Fernandez (JIRA) <jira@mongodb.org>


suresh

Comment by Ramon Fernandez Marina [ 19/Oct/16 ]

I am unable to reproduce the behavior you describe:

$ echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse
 
$ sudo apt-get update
Ign http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
Get:1 http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://repo.mongodb.org trusty/mongodb-org/3.2 InRelease
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release
Get:3 http://repo.mongodb.org trusty/mongodb-org/3.2 Release.gpg [801 B]
Get:4 http://repo.mongodb.org trusty/mongodb-org/3.2 Release [3,462 B]
Get:5 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources [383 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Sources [169 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages [905 kB]
Get:8 http://security.ubuntu.com trusty-security/main Sources [121 kB]
Get:9 http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse amd64 Packages [8,327 B]
Get:10 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Packages [387 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en [440 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en [205 kB]
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Sources
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Sources
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en
Get:13 http://security.ubuntu.com trusty-security/universe Sources [44.3 kB]
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en
Ign http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse Translation-en_US
Ign http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse Translation-en
Get:14 http://security.ubuntu.com trusty-security/main amd64 Packages [536 kB]
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US
Get:15 http://security.ubuntu.com trusty-security/universe amd64 Packages [140 kB]
Get:16 http://security.ubuntu.com trusty-security/main Translation-en [296 kB]
Get:17 http://security.ubuntu.com trusty-security/universe Translation-en [83.8 kB]
Fetched 3,855 kB in 5s (680 kB/s)
Reading package lists... Done
 
$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
  mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 177 not upgraded.
Need to get 50.6 MB of archives.
After this operation, 210 MB of additional disk space will be used.
Get:1 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-shell amd64 3.2.10 [5,261 kB]
Get:2 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-server amd64 3.2.10 [9,585 kB]
Get:3 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-mongos amd64 3.2.10 [4,349 kB]
Get:4 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-tools amd64 3.2.10 [31.4 MB]
Get:5 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org amd64 3.2.10 [3,556 B]
Fetched 50.6 MB in 4s (11.8 MB/s)
Selecting previously unselected package mongodb-org-shell.
(Reading database ... 137511 files and directories currently installed.)
Preparing to unpack .../mongodb-org-shell_3.2.10_amd64.deb ...
Unpacking mongodb-org-shell (3.2.10) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../mongodb-org-server_3.2.10_amd64.deb ...
Unpacking mongodb-org-server (3.2.10) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../mongodb-org-mongos_3.2.10_amd64.deb ...
Unpacking mongodb-org-mongos (3.2.10) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../mongodb-org-tools_3.2.10_amd64.deb ...
Unpacking mongodb-org-tools (3.2.10) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../mongodb-org_3.2.10_amd64.deb ...
Unpacking mongodb-org (3.2.10) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org-shell (3.2.10) ...
Setting up mongodb-org-server (3.2.10) ...
Adding system user `mongodb' (UID 108) ...
Adding new user `mongodb' (UID 108) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 117) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
mongod start/running, process 3059
Setting up mongodb-org-mongos (3.2.10) ...
Setting up mongodb-org-tools (3.2.10) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org (3.2.10) ...
 
$

Please retrace your steps and make sure you run apt-get update. Since I could not find a bug with our packaging I'm going to close this ticket. In the future, for questions like this one please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience – the SERVER project is to report bugs and request features for the MongoDB server.

Thanks,
Ramón.

Generated at Thu Feb 08 04:12:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.