[Pkg-mongodb-maintainers] Bug#858903: Mongodb server fails to install if there is 'mongodb' user already in system.
Marcin Juszkiewicz
marcin.juszkiewicz at linaro.org
Tue Mar 28 12:23:34 UTC 2017
Package: mongodb-server
Version: 1:3.2.11-2
Severity: normal
I am using Kolla to build container images with OpenStack components.
One of images contains mongodb. And it fails to build.
Part of build is creation of users with fixed UID/GID values. Which
works fine for most situations as packages usually are fine with user
accounts already existing. But not mongodb ;(
root at 6b1baf99f51e:/# id mongodb
uid=20007(mongodb) gid=20007(mongodb) groups=20007(mongodb)
root at 6b1baf99f51e:/# apt install mongodb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mongodb-clients
The following NEW packages will be installed:
mongodb-clients mongodb-server
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 32.6 MB of archives.
After this operation, 116 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian stretch/main amd64 mongodb-clients amd64 1:3.2.11-2 [20.7 MB]
Get:2 http://deb.debian.org/debian stretch/main amd64 mongodb-server amd64 1:3.2.11-2 [11.9 MB]
Fetched 32.6 MB in 2s (13.9 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package mongodb-clients.
(Reading database ... 11580 files and directories currently installed.)
Preparing to unpack .../mongodb-clients_1%3a3.2.11-2_amd64.deb ...
Unpacking mongodb-clients (1:3.2.11-2) ...
Selecting previously unselected package mongodb-server.
Preparing to unpack .../mongodb-server_1%3a3.2.11-2_amd64.deb ...
Unpacking mongodb-server (1:3.2.11-2) ...
Setting up mongodb-clients (1:3.2.11-2) ...
Setting up mongodb-server (1:3.2.11-2) ...
adduser: The user `mongodb' already exists. Exiting.
dpkg: error processing package mongodb-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mongodb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root at 6b1baf99f51e:/#
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.10.3-200.fc25.x86_64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages mongodb-server depends on:
ii adduser 3.115
ii init-system-helpers 1.47
ii libboost-chrono1.62.0 1.62.0+dfsg-4
ii libboost-filesystem1.62.0 1.62.0+dfsg-4
ii libboost-program-options1.62.0 1.62.0+dfsg-4
ii libboost-regex1.62.0 1.62.0+dfsg-4
ii libboost-system1.62.0 1.62.0+dfsg-4
ii libboost-thread1.62.0 1.62.0+dfsg-4
ii libc6 2.24-9
ii libgcc1 1:6.3.0-6
ii libgoogle-perftools4 2.5-2.2
ii libpcre3 2:8.39-2.1
ii libpcrecpp0v5 2:8.39-2.1
ii libsnappy1v5 1.1.3-3
ii libssl1.0.2 1.0.2k-1
ii libstdc++6 6.3.0-6
ii libstemmer0d 0+svn585-1+b2
ii libyaml-cpp0.5v5 0.5.2-4
ii lsb-base 9.20161125
ii mongodb-clients 1:3.2.11-2
ii zlib1g 1:1.2.8.dfsg-5
mongodb-server recommends no packages.
mongodb-server suggests no packages.
-- no debconf information
More information about the Pkg-mongodb-maintainers
mailing list