`pkg_add -r mongodb` failed

Alexandr Alexeev afiskon at gmail.com
Sun Oct 21 11:45:57 UTC 2012


I have a problem with MongoDB installation:

asus# pkg_add -r mongodb
Fetching http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/mongodb.tbz...
===> Creating users and/or groups.
Using existing group 'mongodb'.
Creating user 'mongodb' with uid '922'.
pw: user 'mongodb' already exists
pkg_add: command 'if ! /usr/sbin/pw usershow mongodb >/dev/null 2>&1;
then  echo "Creating user 'mongodb' with uid '922'.";  /usr/sbin/pw
useradd mongodb -u 922 -g 922  -c "MongoDB pseudo-user" -d
/var/db/mongodb -s /bin/sh;  else echo "Using existing user
'mongodb'."; fi' failed

# cat /etc/passwd | grep mongodb
mongodb:*:922:922:MongoDB pseudo-user:/var/db/mongodb:/bin/sh

# cat /etc/group | grep mongodb

# id mongodb
id: mongodb: no such user

# pw userdel mongodb
pw: no such user `mongodb'

# uname -a
FreeBSD asus.home 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12
01:47:53 UTC 2012
root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

It seems that binary package is broken.

Best regards,
Alex Alexeev

More information about the freebsd-questions mailing list