Get:11 focal-updates/multiverse amd64 DEP-11 Metadata Get:10 focal-updates/universe amd64 DEP-11 Metadata Get:9 focal-updates/universe amd64 Packages Get:8 focal-updates/universe i386 Packages Get:7 focal-updates/main amd64 DEP-11 Metadata
Then update the local Package database with the new repository package information by using apt update or apt-get update command as shown below. echo "deb focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt//mongodb-org-5.0.listĭeb focal/mongodb-org/5.0 multiverse
In the next step, you need to create a list mongodb-org-5.0.list for Ubuntu 20.04 LTS under /etc/apt/ directory to download and install all the MongoDB packages from the added repository. In the first step, you need to import the MongoDB public GPG Key from using apt-key add command as shown below.Īdvertisements wget -qO - | sudo apt-key add.
Step by Step Guide to Install MongoDB on Ubuntu 20.04 LTSĪlso Read: How to Install and Setup MediaWiki on Ubuntu 20.04 LTS Step 1: PrerequisitesĪ) You should have a running Ubuntu 20.04 LTS System.ī) You should have sudo or root access to run privileged commands.Ĭ) You should have apt or apt-get utility installed in your System.ĭ) You should also have wget, apt-key and tee utility available in your System. It supports multi-document ACID transactions.
MongoDB is widely popular for being a high scalable and performance oriented database. It is designed using C++ Programming Language. MongoDB is a cross platform document-oriented NoSQL Database program which uses JSON like documents to store data. I just now have seen you need the concrete mongodb version 3.4.In this article, I will take you through the step by step guide to install MongoDB on Ubuntu 20.04 LTS. Sudo ln -s /installDir/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.1.0.0
Mongod 3.4 will need the ubuntu 16 OS openssl ssl&crypto 1.0.0 libraries, you may download and copy them from official debian archive extract and create symblic link so the mongod 3.4 to find them: wget ĭpkg -x libssl1.0.0_1.0.2n-1ubuntu5_b /installDir/ When you dont needed it ( it is pretty old version already, at the time of my answer there is 5.0.8 current and 6.0 release canidate ) you can remove the /installDir/ folder with: rm -rf /installDir/* Start the binary or as a service depending on your needs. You need to create the /installDir/data & /installDir/log folders, mongodb will not start if those folders are not found.
Prepare nf file with expected parameters, there is many examples, but here is something minimal: processManagement: Untar the package in the target folder: tar zxvf mongodb-linux-x86_64-ubuntu1604-3.4.23.tgz ( There was no ubuntu 20.04 at the time when mongodb 3.4.23 was packaged )Ĭopy in example folder: cp *23.tgz /installDir/ The following information may help to resolve the situation: The following packages have unmet dependencies: mongodb-org : Depends: mongodb-org-shell but it is not going to be installed Depends: mongodb-org-server but it is not going to be installed Depends: mongodb-org-mongos but it is not going to be installed Depends: mongodb-org-tools but it is not going to be installed E: Unable to correct problems, you have held broken packages.ĭownload the latest(3.4.23) binary archive packaged for ubuntu 16.04 This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Done Some packages could not be installed. Done Building dependency tree Reading state information. Sudo apt-key adv -keyserver hkp://:80 -recv 0C49F3730359A14518585931BC711F9BA15703C6Įcho "deb xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt//mongodb-org-3.4.listīut it was giving an error after the last line's execution: I have tried a lot but there is no way in which I can install mongoDB 3.4.* versions on my Ubuntu 20.04.4 LTS.