Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EC2 Ubuntu 12.04.1 LTS: deb command-not-found [closed]

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?

like image 479
Futur Avatar asked Nov 02 '12 12:11

Futur


People also ask

What is deb command in Ubuntu?

Deb is the installation package format used by all Debian based distributions. The Ubuntu repositories contain thousands of deb packages that can be installed either from the Ubuntu Software Center or from the command line using the apt and apt-get utilities.

Why Yum is not working in Ubuntu?

The first thing to check is to verify if you have yum installed in your system. If you get the error message above, it means yum is not in your PATH. You can also use the RPM Package Manager (RPM) to check if it knows whether or not yum is installed.


1 Answers

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 
like image 179
jokerdino Avatar answered Oct 14 '22 10:10

jokerdino