57

AWS EC2 Linux インスタンス Ubuntu 12.04.1 LTS に mongoDb をインストールしようとすると、

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 をインストールする方法を教えてください。

4

1 に答える 1

123

Deb はコマンドではありません。/etc/apt/sources.listファイルを編集して、次の行を追加する必要があります

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

ファイルの最後まで。

次に、システムを更新してから、MongoDB をインストールします。mongodb が必要なパッケージであると仮定して、次のコマンドを実行します。

sudo apt-get update
sudo apt-get install mongodb
于 2012-11-02T12:40:28.453 に答える