When installing influxdb+Grafana fron openhabin-config menu 20/24 installation of influxdb fails. Log message:
Preparing to unpack .../influxdb_1.11.8-1_arm64.deb ...
useradd: invalid user ID '-m'
dpkg: error processing archive /var/cache/apt/archives/influxdb_1.11.8-1_arm64.deb (--unpack):
new influxdb package pre-installation script subprocess returned error exit status 3
Can you please help me what´s the problem is and what i can do to install influxdb ?
Creating the user manually did not work but i realized that the -u option of the useradd command needs a unique number which is missing in the preinst script.
The error message interpets the next -m option as the UID…
Where can i find the preinst script ? Would it be a good idea to insert a UID value there ?
It is part of the deb package in the control.tar.gz file.
The row with !id influxdb checks if the user id exists. If it does not exist the useradd command will be called. Just manually add the user then install the package again. Which means you need to correct the wrong useradd command.