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?