Mongodb 4.0.4 installation error in Linux
I am using 16.04.1-Ubuntu SMP i686 athlon i686 GNU/Linux (LINUX Mint)
I followed [offical documentation][1], but end up in errors.
installation using LATEST VERSION OF MongoDB
$ sudo apt-get install -y mongodb-org
Errors
Package mongodb-org is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mongodb-org' has no installation candidate
Installation using Specific release of Mongodb
$sudo apt-get install -y mongodb-org=4.0.4 mongodb-org-server=4.0.4 mongodb-org-shell=4.0.4 mongodb-org-mongos=4.0.4 mongodb-org-tools=4.0.4
Error
E: Version '4.0.4' for 'mongodb-org' was not found
E: Version '4.0.4' for 'mongodb-org-server' was not found
E: Version '4.0.4' for 'mongodb-org-shell' was not found
E: Version '4.0.4' for 'mongodb-org-mongos' was not found
E: Version '4.0.4' for 'mongodb-org-tools' was not found
Note : the above installation is done after executing these codes
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
linux mongodb
add a comment |
I am using 16.04.1-Ubuntu SMP i686 athlon i686 GNU/Linux (LINUX Mint)
I followed [offical documentation][1], but end up in errors.
installation using LATEST VERSION OF MongoDB
$ sudo apt-get install -y mongodb-org
Errors
Package mongodb-org is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mongodb-org' has no installation candidate
Installation using Specific release of Mongodb
$sudo apt-get install -y mongodb-org=4.0.4 mongodb-org-server=4.0.4 mongodb-org-shell=4.0.4 mongodb-org-mongos=4.0.4 mongodb-org-tools=4.0.4
Error
E: Version '4.0.4' for 'mongodb-org' was not found
E: Version '4.0.4' for 'mongodb-org-server' was not found
E: Version '4.0.4' for 'mongodb-org-shell' was not found
E: Version '4.0.4' for 'mongodb-org-mongos' was not found
E: Version '4.0.4' for 'mongodb-org-tools' was not found
Note : the above installation is done after executing these codes
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
linux mongodb
Installation works in $ sudo apt-get install -y mongodb 4.0.4 but here MongoDB shell version: 2.6.10
– VA splash
Nov 17 '18 at 19:33
add a comment |
I am using 16.04.1-Ubuntu SMP i686 athlon i686 GNU/Linux (LINUX Mint)
I followed [offical documentation][1], but end up in errors.
installation using LATEST VERSION OF MongoDB
$ sudo apt-get install -y mongodb-org
Errors
Package mongodb-org is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mongodb-org' has no installation candidate
Installation using Specific release of Mongodb
$sudo apt-get install -y mongodb-org=4.0.4 mongodb-org-server=4.0.4 mongodb-org-shell=4.0.4 mongodb-org-mongos=4.0.4 mongodb-org-tools=4.0.4
Error
E: Version '4.0.4' for 'mongodb-org' was not found
E: Version '4.0.4' for 'mongodb-org-server' was not found
E: Version '4.0.4' for 'mongodb-org-shell' was not found
E: Version '4.0.4' for 'mongodb-org-mongos' was not found
E: Version '4.0.4' for 'mongodb-org-tools' was not found
Note : the above installation is done after executing these codes
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
linux mongodb
I am using 16.04.1-Ubuntu SMP i686 athlon i686 GNU/Linux (LINUX Mint)
I followed [offical documentation][1], but end up in errors.
installation using LATEST VERSION OF MongoDB
$ sudo apt-get install -y mongodb-org
Errors
Package mongodb-org is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mongodb-org' has no installation candidate
Installation using Specific release of Mongodb
$sudo apt-get install -y mongodb-org=4.0.4 mongodb-org-server=4.0.4 mongodb-org-shell=4.0.4 mongodb-org-mongos=4.0.4 mongodb-org-tools=4.0.4
Error
E: Version '4.0.4' for 'mongodb-org' was not found
E: Version '4.0.4' for 'mongodb-org-server' was not found
E: Version '4.0.4' for 'mongodb-org-shell' was not found
E: Version '4.0.4' for 'mongodb-org-mongos' was not found
E: Version '4.0.4' for 'mongodb-org-tools' was not found
Note : the above installation is done after executing these codes
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
linux mongodb
linux mongodb
edited Nov 17 '18 at 12:03
VA splash
asked Nov 17 '18 at 3:58
VA splashVA splash
86
86
Installation works in $ sudo apt-get install -y mongodb 4.0.4 but here MongoDB shell version: 2.6.10
– VA splash
Nov 17 '18 at 19:33
add a comment |
Installation works in $ sudo apt-get install -y mongodb 4.0.4 but here MongoDB shell version: 2.6.10
– VA splash
Nov 17 '18 at 19:33
Installation works in $ sudo apt-get install -y mongodb 4.0.4 but here MongoDB shell version: 2.6.10
– VA splash
Nov 17 '18 at 19:33
Installation works in $ sudo apt-get install -y mongodb 4.0.4 but here MongoDB shell version: 2.6.10
– VA splash
Nov 17 '18 at 19:33
add a comment |
2 Answers
2
active
oldest
votes
Tutorial: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
add a comment |
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
Note that you have ubuntu trusty
in the .list file, but you stated that you are running Ubuntu 16.04
. The installation documentation has tabs for the supported Ubuntu releases. For example, clicking on the tab for Ubuntu 16.04 provides the following:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
You may need to remove the old .list
file and start from scratch to remove any potential conflicts. So sudo rm /etc/apt/sources.list.d/mongodb-org-4.0.list
.
Then repeat the installation steps, making sure to select the correct tab for your Ubuntu version. You can cat /etc/apt/sources.list.d/mongodb-org-4.0.list
to double check everything matches up.
I've validated our installation instructions on Ubuntu 16.04 in VM as recently as last week, so we should be able to get you up and running here.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53348064%2fmongodb-4-0-4-installation-error-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Tutorial: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
add a comment |
Tutorial: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
add a comment |
Tutorial: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
Tutorial: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
answered Nov 17 '18 at 11:27
Boris TraljićBoris Traljić
634311
634311
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
add a comment |
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
The same error exists : E: Package 'mongodb-org' has no installation candidate at $ sudo apt-get install -y mongodb-org
– VA splash
Nov 17 '18 at 11:56
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
How can i do it in a single script and on a double click it has to run all the commands
– Naveen
Jan 18 at 5:50
add a comment |
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
Note that you have ubuntu trusty
in the .list file, but you stated that you are running Ubuntu 16.04
. The installation documentation has tabs for the supported Ubuntu releases. For example, clicking on the tab for Ubuntu 16.04 provides the following:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
You may need to remove the old .list
file and start from scratch to remove any potential conflicts. So sudo rm /etc/apt/sources.list.d/mongodb-org-4.0.list
.
Then repeat the installation steps, making sure to select the correct tab for your Ubuntu version. You can cat /etc/apt/sources.list.d/mongodb-org-4.0.list
to double check everything matches up.
I've validated our installation instructions on Ubuntu 16.04 in VM as recently as last week, so we should be able to get you up and running here.
add a comment |
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
Note that you have ubuntu trusty
in the .list file, but you stated that you are running Ubuntu 16.04
. The installation documentation has tabs for the supported Ubuntu releases. For example, clicking on the tab for Ubuntu 16.04 provides the following:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
You may need to remove the old .list
file and start from scratch to remove any potential conflicts. So sudo rm /etc/apt/sources.list.d/mongodb-org-4.0.list
.
Then repeat the installation steps, making sure to select the correct tab for your Ubuntu version. You can cat /etc/apt/sources.list.d/mongodb-org-4.0.list
to double check everything matches up.
I've validated our installation instructions on Ubuntu 16.04 in VM as recently as last week, so we should be able to get you up and running here.
add a comment |
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
Note that you have ubuntu trusty
in the .list file, but you stated that you are running Ubuntu 16.04
. The installation documentation has tabs for the supported Ubuntu releases. For example, clicking on the tab for Ubuntu 16.04 provides the following:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
You may need to remove the old .list
file and start from scratch to remove any potential conflicts. So sudo rm /etc/apt/sources.list.d/mongodb-org-4.0.list
.
Then repeat the installation steps, making sure to select the correct tab for your Ubuntu version. You can cat /etc/apt/sources.list.d/mongodb-org-4.0.list
to double check everything matches up.
I've validated our installation instructions on Ubuntu 16.04 in VM as recently as last week, so we should be able to get you up and running here.
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$sudo apt-get update
Note that you have ubuntu trusty
in the .list file, but you stated that you are running Ubuntu 16.04
. The installation documentation has tabs for the supported Ubuntu releases. For example, clicking on the tab for Ubuntu 16.04 provides the following:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
You may need to remove the old .list
file and start from scratch to remove any potential conflicts. So sudo rm /etc/apt/sources.list.d/mongodb-org-4.0.list
.
Then repeat the installation steps, making sure to select the correct tab for your Ubuntu version. You can cat /etc/apt/sources.list.d/mongodb-org-4.0.list
to double check everything matches up.
I've validated our installation instructions on Ubuntu 16.04 in VM as recently as last week, so we should be able to get you up and running here.
answered Jan 3 at 16:41
rkumar-mongorkumar-mongo
1113
1113
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53348064%2fmongodb-4-0-4-installation-error-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Installation works in $ sudo apt-get install -y mongodb 4.0.4 but here MongoDB shell version: 2.6.10
– VA splash
Nov 17 '18 at 19:33