Score:0

Error when starting MongoDB

pe flag

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.
user256422 avatar
ca flag
As this part says `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.` mongodb was **not** installed. As the error message suggests, try to add the `--allow-downgrades` option to your command.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.