When I try to start mongodb the following error is thrown:
"Failed to start mongod.service: Unit mongod.service not found.
I completed the installation.
dpkg returned an error code (1)
ubuntu@ip-172-31-86-9:~$ sudo apt-get install -y mongodb-org=5.0.13 mongodb-org-database=5.0.13 mongodb-org-server=5.0.13 mongodb-org-shell=5.0.13 mongodb-org-mongos=5.0.13 mongodb-org-tools=5.0.13
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
mongodb-org-mongos mongodb-org-server
The following packages will be DOWNGRADED:
mongodb-org mongodb-org-database mongodb-org-shell mongodb-org-tools
0 upgraded, 2 newly installed, 4 downgraded, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
E: Packages were downgraded and -y was used without --allow-downgrades.
ubuntu@ip-172-31-86-9:~$ sudo systemctl start mongod
Failed to start mongod.service: Unit mongod.service not found.