Score:0

unknown system user 'mongodb' in statoverride file;

in flag

I am trying to download mongodb Compass, but I get this weird error in my terminal. I think it is because I removed mongodb before, but I don't know how to fix this issue. After I run sudo apt upgrade I get this error.

dpkg: unrecoverable fatal error, aborting:
 unknown system user 'mongodb' in statoverride file; the system user got removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
E: Sub-process /usr/bin/dpkg returned an error code (2)
cn flag
`to recover you can remove the override manually with dpkg-statoverride`
Andrea Borgogelli Avveduti avatar
cn flag
@Rinzwind, dpkg-statoverride: error: need an action option
Score:0
cn flag

You can edit the file /var/lib/dpkg/statoverride, eg:

sudo nano /var/lib/dpkg/statoverride

and remove the two lines which refer to the mongodb user.

Score:0
se flag

run

sudo sed -i '/mongodb/d' /var/lib/dpkg/statoverride

and

sudo apt install mongodb-org
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.