我正在我的 Ubuntu 11.10 机器上安装 MongoDB。将适当的行添加到 /etc/apt/sources.list 后(使用此处的说明),我键入以下内容进行安装:
sudo apt-get install mongodb-10gen
它导致以下输出:
Adding system user `mongodb' (UID 117) ...
Adding new user `mongodb' (UID 117) with group `nogroup' ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /home/mongodb -g nogroup -s /bin/false -u 117 mongodb' returned error code 1. Exiting.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
我只打开了其他终端窗口(它们都没有运行任何程序)并且 Chromium 打开。为什么安装可能无法添加用户?
谢谢,
典范RG