I am following the directions here: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/
I am attempting to create a docker image based on the openjdk image and wish to install a mongdb server there, which I’m using internally to manage temporary databases.
I wanted to make sure what I was running, so I ran cat /etc/os-release
in my image, and it displayed the following data:
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
When I get to the command apt-get install -y mongodb-org
I get the following error
Done.
/var/lib/dpkg/info/mongodb-org-server.postinst: 43: /var/lib/dpkg/info/mongodb-org-server.postinst: systemctl: not found
dpkg: error processing package mongodb-org-server (--configure):
installed mongodb-org-server package post-installation script subprocess returned error exit status 127
I searched for the error, including this forum, and couldn’t find it, so I’m posting here. Please advise.
Thanks.