Webapp install fails after apt purge
During the investigation of a daemon issue Mqtt connection fail (local broker), we purged the gateway and it also removed the webapp so whee tried to install again we got the bellow error:
ubilinux@ubilinux4:/etc/iqrf-gateway-daemon$ sudo apt-get install iqrf-gateway-webapp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
iqrf-gateway-webapp
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/397 kB of archives.
After this operation, 2,033 kB of additional disk space will be used.
Selecting previously unselected package iqrf-gateway-webapp.
(Reading database ... 128793 files and directories currently installed.)
Preparing to unpack .../iqrf-gateway-webapp_2.0.0-beta~1191.gbp2758e0_all.deb ...
Unpacking iqrf-gateway-webapp (2.0.0-beta~1191.gbp2758e0) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up iqrf-gateway-webapp (2.0.0-beta~1191.gbp2758e0) ...
Generating a RSA private key
....................................++++
.........................................................++++
writing new private key to '/etc/iqrf-gateway-webapp/certs/privkey.pem'
-----
enabled
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
[ErrorException]
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
dpkg: error processing package iqrf-gateway-webapp (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
iqrf-gateway-webapp
E: Sub-process /usr/bin/dpkg returned an error code (1)