Eu postei sobre isso antes em não consegui instalar o mongodb no ubuntu 14.04 mas essa pergunta não me fez instalar os repos mongodb. Eu poderia editar essa questão, suponho, mas isso meio que invalidaria a resposta que foi dada e, além disso, já que não é mais uma pergunta nova, provavelmente não seria notada.
De qualquer forma, estou tentando instalar o MongoDB no Ubuntu 15.04 e não consigo. Eu fiz o seguinte:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/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
sudo apt-get update
retornou o seguinte:
Ign http://repo.mongodb.org vivid/mongodb-org/3.0 InRelease
Ign http://archive.ubuntu.com vivid InRelease
Ign http://security.ubuntu.com vivid-security InRelease
Ign http://repo.mongodb.org vivid/mongodb-org/3.0 Release.gpg
Ign http://archive.ubuntu.com vivid-updates InRelease
Get:1 http://security.ubuntu.com vivid-security Release.gpg [933 B]
Get:2 http://archive.ubuntu.com vivid Release.gpg [933 B]
Get:3 http://security.ubuntu.com vivid-security Release [63.5 kB]
Ign http://repo.mongodb.org vivid/mongodb-org/3.0 Release
Get:4 http://archive.ubuntu.com vivid-updates Release.gpg [933 B]
Get:5 http://archive.ubuntu.com vivid Release [217 kB]
Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [99.8 kB]
Get:7 http://security.ubuntu.com vivid-security/restricted amd64 Packages [28 B]
Get:8 http://security.ubuntu.com vivid-security/main Translation-en [52.7 kB]
Get:9 http://archive.ubuntu.com vivid-updates Release [63.5 kB]
Get:10 http://security.ubuntu.com vivid-security/restricted Translation-en [14 B]
Get:11 http://archive.ubuntu.com vivid/main amd64 Packages [1,364 kB]
Err http://repo.mongodb.org vivid/mongodb-org/3.0/multiverse amd64 Packages
404 Not Found
Ign http://repo.mongodb.org vivid/mongodb-org/3.0/multiverse Translation-en_US
Ign http://repo.mongodb.org vivid/mongodb-org/3.0/multiverse Translation-en
Get:12 http://archive.ubuntu.com vivid/restricted amd64 Packages [15.4 kB]
Get:13 http://archive.ubuntu.com vivid/main Translation-en [793 kB]
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Get:14 http://archive.ubuntu.com vivid-updates/main amd64 Packages [171 kB]
Get:15 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [28 B]
Get:16 http://archive.ubuntu.com vivid-updates/main Translation-en [83.3 kB]
Get:17 http://archive.ubuntu.com vivid-updates/restricted Translation-en [14 B]
Fetched 2,926 kB in 4s (713 kB/s)
W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/vivid/mongodb-org/3.0/multiverse/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Observe os erros 404 não encontrados.
De qualquer forma, eu tento sudo apt-get install -y mongodb-org
depois disso e a saída que recebo é a seguinte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mongodb-org
Alguma idéia?