Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16607

The package xwiki-tomcat9-common fails to install on Debian Bullseye

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 11.6, 11.3.7
    • 11.6-rc-1
    • Distribution - Debian
    • Debian GNU/Linux bullseye/sid
      Linux xwiki 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux
    • Unknown
    • N/A
    • N/A

    Description

      Following 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
      Suggested packages:
        xwiki-tomcat9-mysql | xwiki-tomcat9-pgsql
      The following NEW packages will be installed:
        xwiki-tomcat9-common
      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:
       xwiki-tomcat9-common
      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
      tomcat8:x:107:112:Apache Tomcat,,,:/var/lib/tomcat8:/bin/false
      tomcat:x:998:998:Apache Tomcat:/:/usr/sbin/nologin
      

      Attachments

        Activity

          People

            caubin Clément Aubin
            caubin Clément Aubin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: