Setting up mongodb-org-database-tools-extra (4.4.0). Setting up mongodb-database-tools (100.1.1). Installed mongodb-org-server package post-installation script subprocess returned error exit status 1 Can't operate.ĭpkg: error processing package mongodb-org-server (-configure): System has not been booted with systemd as init system (PID 1). Selecting previously unselected package mongodb-org. Selecting previously unselected package mongodb-org-tools. Unpacking mongodb-org-database-tools-extra (4.4.0). Selecting previously unselected package mongodb-org-database-tools-extra. Selecting previously unselected package mongodb-org-mongos. Selecting previously unselected package mongodb-org-server. Selecting previously unselected package mongodb-org-shell. Unpacking mongodb-database-tools (100.1.1). 46142 files and directories currently installed.) Selecting previously unselected package mongodb-database-tools. Mongodb-database-tools mongodb-org mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shellĠ upgraded, 7 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 200 MB of additional disk space will be used. The following NEW packages will be installed: Mongodb-database-tools mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell The following additional packages will be installed: However, during the installation I get this error: $ sudo apt-get install -y mongodb-org
I've been following the mongoDB manual to install the database on WSL. As of now, it's affecting both 18.04 and 20.04 on WSL1. Parsing /opt/zeek/logs/current/ssl.EDIT 2: it seems like this issue is what is causing the problem with mongodb. Parsing /opt/zeek/logs/current/http.log -> test Parsing /opt/zeek/logs/current/dns.log -> test
Parsing /opt/zeek/logs/current/conn.log -> test Verifying log files have not been previously parsed into the target dataset. :~# rita import /opt/zeek/logs/current/ test Systemctl start rvice RITA works! > db.version() Oh, my permissions are wrong, I'll fix that! Mongo complains if it's directory is missing, give it one.
Thanks to Code Grepper for helping me get startedĭescription=An object/document-oriented database Python2.7 buildscripts/scons.py -disable-warnings-as-errors -prefix=/opt/mongo install Mongo isn't started, service isn't created. Python2.7 -m pip install -r buildscripts/requirements.txt Build and install our old mongo, ignore all the warnings! We're already well into bad idea territory Python2.7 get-pip.py Get an old mongo version, install a few more prereqs Quick steps: Grab some prerequisitesĪpt install libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev If you're not going to build a package or repo for me, then I'll build it myself, with blackjack, and mongo! We're going to grab the Mongo 3.6 source and build it on 20.04. If you're still reading, then here's the TL DR.
It's full of lax permissions (777 all the things!) EOL software (python2.7), and unsupported stuff (like Mongo 3.6 working on Ubuntu 20.04) In fact, please don't attempt it in a dev or test environment. Please don't attempt the below in a production environment. Since nobody else seemed to have solved it, I was determined to get what seemed like a very bad idea working.
Google search for installing Mongo 3.6 on Ubuntu 20.04 led me here. The below is pretty much just a copy and paste of that. Not one to let common sense stop me, I decided that if something wasn't intended to work, I was going to make it work. Mongo 3.6 is only supported up to Ubuntu 18.04, and no packages or repos seem to exist for 20.04. The problem is, RITA only supports Mongo 3.6 (though they say 3.7 should work). I decided I wanted to add RITA to the mix. I was playing with Zeek at home (if you want to get started, check out Zeekurity Zen on Eric Ooi's page, quality stuff) and built everything on Ubuntu 20.04.
I'm sure the first thing you're asking yourself is why.