Mungkin saja, MongoDB tidak memulai jika Anda menggunakan paket Trusty:
Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.
Dalam hal ini, instal paket Debian Wheezy seperti yang dijelaskan di bagian akhir.
Instal paket DEB Terpercaya
Unduh file DEB
cd
wget http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-mongos_3.0.3_amd64.deb
wget http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-server_3.0.3_amd64.deb
wget http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-shell_3.0.3_amd64.deb
wget http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org-tools_3.0.3_amd64.deb
wget http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/multiverse/binary-amd64/mongodb-org_3.0.3_amd64.deb
Dan instal dengan (dalam urutan ini)
sudo dpkg -i mongodb-org-server_3.0.3_amd64.deb
sudo dpkg -i mongodb-org-tools_3.0.3_amd64.deb
sudo dpkg -i mongodb-org-shell_3.0.3_amd64.deb
sudo dpkg -i mongodb-org-mongos_3.0.3_amd64.deb
sudo dpkg -i mongodb-org_3.0.3_amd64.deb
Dan diambil dari komentar, terima kasih @ Pilot6 :
Mereka mungkin memiliki ketergantungan satu sama lain. Itu sebabnya paket instalasi satu per satu dapat memberikan kesalahan. saya menyarankansudo dpkg -i mongodb*.deb
Gunakan PPA Terpercaya
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Gunakan paket Debian Wheezy
Mungkin saja, MongoDB tidak memulai jika Anda menggunakan paket Trusty:
Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.
Dalam hal ini, instal paket Debian Wheezy seperti yang dijelaskan di bawah ini
sudo apt-get remove mongodb-org
sudo apt-get autoremove
sudo rm /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org