Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to install mongodb into a fairly clean Ubuntu 14.04. I used the following commands:

sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10
echo 'deb dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-10gen

and the following error occured

Setting up mongodb-10gen (2.4.10) ...
chown: invalid user: ‘mongodb:mongodb’
dpkg: error processing package mongodb-10gen (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

and I could not find any similar users in /etc/passwd

:/var/lib/mongodb$ cat /etc/passwd | grep mongo

I don't know how to fix this because mongodb:mongodb simply doesn't exist. I tried to remo

share|improve this question
I think part of the problem is also the lack of documentation on mongodb-10gen as the official documentation recommends installing mongodb-org instead – Antony Sep 16 '14 at 13:26
up vote 3 down vote accepted

I don´t know why your question was downvoted.... I never used mongodb or the ubuntu package "mongodb" but it seems that the package description is missing creation of the user - you can create users with "adduser"

So sudo adduser mongodb and reinstalling the package or perhaps sudo dpkg --configure -a should help.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.