User "elasticsearch"

I have learned elasticsearch won't run on a Raspberry Pi. So I've purged it by

sudo apt-get purge elasticsearch

Now I 've tried to upgrade PHP. But it has failed by an user elasticsearch:

pi@raspberrypi:~ $ sudo apt-get upgrade php
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  php
The following packages will be upgraded:
  base-files ca-certificates-java imagemagick-6-common java-common libmagickcore-6.q16-3 libmagickwand-6.q16-3 libpng-dev
  libpng-tools libpng16-16 python3-cryptography raspi-config rsync unzip
13 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,584 kB of archives.
After this operation, 7,168 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
dpkg: unrecoverable fatal error, aborting:
 unknown user 'elasticsearch' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

Who is it? And how can I convince my system not to be disturbed by user elasticsearch?

The elasticsearch user should have been removed when elasticsearch was uninstalled. Was there an error when you ran purge? Can you please try running the purge command again and pasting the output here?

I've ran purge once again

pi@raspberrypi:~ $ sudo apt-get purge elasticsearch
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'elasticsearch' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.

Then I have rebooted the machine and have tried again to upgrade PHP. But it failes with the same message as written above.

This did the trick.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.