57

When I tried to install mongoDb in my AWS EC2 Linux instance:Ubuntu 12.04.1 LTS,

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

I get this following error, meaning deb command is not found.

$ deb Sorry, command-not-found has crashed! Please file a bug report
at: https://bugs.launchpad.net/command-not-found/+filebug Please
include the following information with the report:
 
command-not-found version: 0.2.44

Can someone please help me find out how to install deb in my AWS instance?

jokerdino
  • 2,047
  • 1
  • 25
  • 31
Futur
  • 8,444
  • 5
  • 28
  • 34
  • 1
    This question would be better suited for [askubuntu](http://askubuntu.com) or [superuser](http://superuser.com). – Pedro Romano Nov 02 '12 at 12:42
  • don't forget to run: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - – blnc Mar 08 '15 at 06:24

1 Answers1

123

Deb is not a command. You need to edit your /etc/apt/sources.list file and add the following line

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

to the end of the file.

Then, update your system and then install MongoDB. Assuming mongodb is the package you need then run these commands:

sudo apt-get update
sudo apt-get install mongodb
Jujhar Singh
  • 3,641
  • 5
  • 29
  • 38
jokerdino
  • 2,047
  • 1
  • 25
  • 31
  • Yes you're correct, i just found my assumption to this error is wrong. i fixed it just now. Thanks for your answer :). will mark yours as an answer in 8 mins. – Futur Nov 02 '12 at 12:42