XWIKI-15053, the new package xwiki-tomcat9-common fails to install on the latest Debian versions.
The error returned is the following :
xwiki ~ # apt install xwiki-tomcat9-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
xwiki-tomcat9-mysql | xwiki-tomcat9-pgsql
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3120 B of archives.
After this operation, 2048 B of additional disk space will be used.
Selecting previously unselected package xwiki-tomcat9-common.
(Reading database ... 39630 files and directories currently installed.)
Preparing to unpack .../xwiki-tomcat9-common_11.6~rc+1_all.deb ...
Unpacking xwiki-tomcat9-common (11.6~rc+1) ...
Setting up xwiki-tomcat9-common (11.6~rc+1) ...
chown: invalid user: ‘tomcat9.tomcat9’
dpkg: error processing package xwiki-tomcat9-common (--configure):
installed xwiki-tomcat9-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Looking at /etc/passwd, we see that there is no tomcat9 user existing :
xwiki ~ # grep "tomcat*" /etc/passwd