Get mongo server version >= 3.6












0















On Ubuntu 18.04 I run this:



sudo apt-get install mongodb-org
mongo


And get this in mongo shell greeting output:



MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
WARNING: No implicit session: Logical Sessions are only supported on server versions 3.6 and greater.
Implicit session: dummy session
MongoDB server version: 3.4.16
WARNING: shell and server versions do not match


But I want to get server version >= 3.6. How can I do this?










share|improve this question

























  • Did you have MongoDB 3.4 installed and running before upgrading to 4.0? If so, did you stop the mongod service before upgrading? Note: if you are upgrading, the supported upgrade path is via successive major releases (3.4 => 3.6, 3.6 => 4.0). Skipping one or more major releases may require some extra admin work depending on your configuration.

    – Stennie
    Jan 5 at 5:10
















0















On Ubuntu 18.04 I run this:



sudo apt-get install mongodb-org
mongo


And get this in mongo shell greeting output:



MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
WARNING: No implicit session: Logical Sessions are only supported on server versions 3.6 and greater.
Implicit session: dummy session
MongoDB server version: 3.4.16
WARNING: shell and server versions do not match


But I want to get server version >= 3.6. How can I do this?










share|improve this question

























  • Did you have MongoDB 3.4 installed and running before upgrading to 4.0? If so, did you stop the mongod service before upgrading? Note: if you are upgrading, the supported upgrade path is via successive major releases (3.4 => 3.6, 3.6 => 4.0). Skipping one or more major releases may require some extra admin work depending on your configuration.

    – Stennie
    Jan 5 at 5:10














0












0








0








On Ubuntu 18.04 I run this:



sudo apt-get install mongodb-org
mongo


And get this in mongo shell greeting output:



MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
WARNING: No implicit session: Logical Sessions are only supported on server versions 3.6 and greater.
Implicit session: dummy session
MongoDB server version: 3.4.16
WARNING: shell and server versions do not match


But I want to get server version >= 3.6. How can I do this?










share|improve this question
















On Ubuntu 18.04 I run this:



sudo apt-get install mongodb-org
mongo


And get this in mongo shell greeting output:



MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
WARNING: No implicit session: Logical Sessions are only supported on server versions 3.6 and greater.
Implicit session: dummy session
MongoDB server version: 3.4.16
WARNING: shell and server versions do not match


But I want to get server version >= 3.6. How can I do this?







apt 18.04 mongodb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 12:30







Sanya

















asked Jan 4 at 11:52









SanyaSanya

11




11













  • Did you have MongoDB 3.4 installed and running before upgrading to 4.0? If so, did you stop the mongod service before upgrading? Note: if you are upgrading, the supported upgrade path is via successive major releases (3.4 => 3.6, 3.6 => 4.0). Skipping one or more major releases may require some extra admin work depending on your configuration.

    – Stennie
    Jan 5 at 5:10



















  • Did you have MongoDB 3.4 installed and running before upgrading to 4.0? If so, did you stop the mongod service before upgrading? Note: if you are upgrading, the supported upgrade path is via successive major releases (3.4 => 3.6, 3.6 => 4.0). Skipping one or more major releases may require some extra admin work depending on your configuration.

    – Stennie
    Jan 5 at 5:10

















Did you have MongoDB 3.4 installed and running before upgrading to 4.0? If so, did you stop the mongod service before upgrading? Note: if you are upgrading, the supported upgrade path is via successive major releases (3.4 => 3.6, 3.6 => 4.0). Skipping one or more major releases may require some extra admin work depending on your configuration.

– Stennie
Jan 5 at 5:10





Did you have MongoDB 3.4 installed and running before upgrading to 4.0? If so, did you stop the mongod service before upgrading? Note: if you are upgrading, the supported upgrade path is via successive major releases (3.4 => 3.6, 3.6 => 4.0). Skipping one or more major releases may require some extra admin work depending on your configuration.

– Stennie
Jan 5 at 5:10










1 Answer
1






active

oldest

votes


















0














You can use Mongodb source list file to install =>3.6 mongodb version.



Create the source list file /etc/apt/sources.list.d/mongodb-org-4.0.list.



echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list


Update package database.



sudo apt update 


You can define version number while installation.
For example,Here I have pinned 4.0.5 version.



sudo apt-get install -y mongodb-org=4.0.5 mongodb-org-server=4.0.5 mongodb-org-shell=4.0.5 mongodb-org-mongos=4.0.5 mongodb-org-tools=4.0.5





share|improve this answer


























  • I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

    – Sanya
    Jan 4 at 12:05













  • For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

    – Ketan Patel
    Jan 4 at 12:17













  • It installs shell version 4.0.5, but server version 3.4.16

    – Sanya
    Jan 4 at 12:33











  • Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

    – Ketan Patel
    Jan 4 at 12:56











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106893%2fget-mongo-server-version-3-6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can use Mongodb source list file to install =>3.6 mongodb version.



Create the source list file /etc/apt/sources.list.d/mongodb-org-4.0.list.



echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list


Update package database.



sudo apt update 


You can define version number while installation.
For example,Here I have pinned 4.0.5 version.



sudo apt-get install -y mongodb-org=4.0.5 mongodb-org-server=4.0.5 mongodb-org-shell=4.0.5 mongodb-org-mongos=4.0.5 mongodb-org-tools=4.0.5





share|improve this answer


























  • I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

    – Sanya
    Jan 4 at 12:05













  • For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

    – Ketan Patel
    Jan 4 at 12:17













  • It installs shell version 4.0.5, but server version 3.4.16

    – Sanya
    Jan 4 at 12:33











  • Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

    – Ketan Patel
    Jan 4 at 12:56
















0














You can use Mongodb source list file to install =>3.6 mongodb version.



Create the source list file /etc/apt/sources.list.d/mongodb-org-4.0.list.



echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list


Update package database.



sudo apt update 


You can define version number while installation.
For example,Here I have pinned 4.0.5 version.



sudo apt-get install -y mongodb-org=4.0.5 mongodb-org-server=4.0.5 mongodb-org-shell=4.0.5 mongodb-org-mongos=4.0.5 mongodb-org-tools=4.0.5





share|improve this answer


























  • I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

    – Sanya
    Jan 4 at 12:05













  • For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

    – Ketan Patel
    Jan 4 at 12:17













  • It installs shell version 4.0.5, but server version 3.4.16

    – Sanya
    Jan 4 at 12:33











  • Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

    – Ketan Patel
    Jan 4 at 12:56














0












0








0







You can use Mongodb source list file to install =>3.6 mongodb version.



Create the source list file /etc/apt/sources.list.d/mongodb-org-4.0.list.



echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list


Update package database.



sudo apt update 


You can define version number while installation.
For example,Here I have pinned 4.0.5 version.



sudo apt-get install -y mongodb-org=4.0.5 mongodb-org-server=4.0.5 mongodb-org-shell=4.0.5 mongodb-org-mongos=4.0.5 mongodb-org-tools=4.0.5





share|improve this answer















You can use Mongodb source list file to install =>3.6 mongodb version.



Create the source list file /etc/apt/sources.list.d/mongodb-org-4.0.list.



echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list


Update package database.



sudo apt update 


You can define version number while installation.
For example,Here I have pinned 4.0.5 version.



sudo apt-get install -y mongodb-org=4.0.5 mongodb-org-server=4.0.5 mongodb-org-shell=4.0.5 mongodb-org-mongos=4.0.5 mongodb-org-tools=4.0.5






share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 4 at 12:12

























answered Jan 4 at 11:58









Ketan PatelKetan Patel

10.3k94365




10.3k94365













  • I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

    – Sanya
    Jan 4 at 12:05













  • For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

    – Ketan Patel
    Jan 4 at 12:17













  • It installs shell version 4.0.5, but server version 3.4.16

    – Sanya
    Jan 4 at 12:33











  • Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

    – Ketan Patel
    Jan 4 at 12:56



















  • I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

    – Sanya
    Jan 4 at 12:05













  • For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

    – Ketan Patel
    Jan 4 at 12:17













  • It installs shell version 4.0.5, but server version 3.4.16

    – Sanya
    Jan 4 at 12:33











  • Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

    – Ketan Patel
    Jan 4 at 12:56

















I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

– Sanya
Jan 4 at 12:05







I have already done it, from this doc docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu It doesnt help me

– Sanya
Jan 4 at 12:05















For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

– Ketan Patel
Jan 4 at 12:17







For me it installs latest packages 4.0.5 version. You can also pin specific version. Can you provide more info with output ?

– Ketan Patel
Jan 4 at 12:17















It installs shell version 4.0.5, but server version 3.4.16

– Sanya
Jan 4 at 12:33





It installs shell version 4.0.5, but server version 3.4.16

– Sanya
Jan 4 at 12:33













Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

– Ketan Patel
Jan 4 at 12:56





Then you can upgrade it. sudo apt upgrade mongodb-org-server=4.0.5

– Ketan Patel
Jan 4 at 12:56


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106893%2fget-mongo-server-version-3-6%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei