AWS EC2 Ubuntu 12.04.1 LTS:deb命令未找到

AWS EC2 Ubuntu 12.04.1 LTS:deb命令未找到,ubuntu,amazon-web-services,deb,Ubuntu,Amazon Web Services,Deb,当我试图在AWS EC2 Linux实例中安装mongoDb:Ubuntu12.04.1 LTS时 deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen 我得到以下错误,这意味着找不到deb命令 $ deb Sorry, command-not-found has crashed! Please file a bug report at: https://bugs.launchpad.net/command

当我试图在AWS EC2 Linux实例中安装mongoDb:Ubuntu12.04.1 LTS时

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
我得到以下错误,这意味着找不到deb命令

$ 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

有人能帮我找到如何在AWS实例中安装deb吗?

deb不是命令。您需要编辑
/etc/apt/sources。列出
文件并添加以下行

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
到文件的末尾

然后,更新您的系统,然后安装MongoDB。假设mongodb是您需要的软件包,然后运行以下命令:

sudo apt-get update
sudo apt-get install mongodb

这个问题更适合or。别忘了运行:wget--quiet-O-| sudo apt key add-是的,你是对的,我刚刚发现我对这个错误的假设是错误的。我刚才修好了。谢谢你的回答:)。将在8分钟内将您的答案标记为答案。