Package fails to install when user already exists.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
elasticsearch (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
We have our system pre-create users before installing packages so the UIDs match across all of our systems, however elasticsearch fails to install due to error:
Preparing to unpack .../elasticsear
Warning: The home dir /var/lib/
adduser: The user `elasticsearch' already exists. Exiting.
dpkg: error processing archive /var/cache/
It appears that the problem is the preinst control file:
if ! getent user 'elasticsearch' > /dev/null 2>&1 ; then
This should be "getent passwd"
It appears this is still present in the 1.7.5-1 version as well.
Versions:
Description: Ubuntu 16.04.3 LTS
Release: 16.04
elasticsearch:
Installed: (none)
Candidate: 1.7.3+dfsg-3
Version table:
1.7.3+dfsg-3 500
500 http://
tags: | added: xenial |