AWS EC2 Ubuntu 12.04.1 LTS: deb command-not-found

UbuntuAmazon Web-ServicesDeb

Ubuntu Problem Overview


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?

Ubuntu Solutions


Solution 1 - Ubuntu

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionFuturView Question on Stackoverflow
Solution 1 - UbuntujokerdinoView Answer on Stackoverflow