Tomcat Setting up tomcat8 (8.0.32-1ubuntu1.4) ... dpkg: error processing package tomcat8 (--configure): subprocess installed post-installation script returned error exit status 128

Bug #1705237 reported by Joan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat8 (Debian)
Fix Released
Unknown
tomcat8 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When upgrading from tomcat 8.0.32-1ubuntu1.3 to 8.0.32-1ubuntu1.4 I get an error and I can't continue with the installation

Setting up tomcat8 (8.0.32-1ubuntu1.4) ...
dpkg: error processing package tomcat8 (--configure):
 subprocess installed post-installation script returned error exit status 128

It's the same error that can be found in debian with bug 853173 at (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853173) still unsolved

So far the only solution has been to remove the configuration files until the install have been done:

#backup
mv /etc/tomcat8 /etc/tomcat8_old
mv /etc/default/tomcat8 /etc/default/tomcat8_old
#create dummy folders for the installer
mkdir -p /etc/tomcat8/policy.d
mkdir -p /etc/tomcat8/Catalina
#install
apt-get install tomcat8
#delete new conf files and place the previous ones
rm -Rf /etc/tomcat8 /etc/default/tomcat8
cp -a /etc/default/tomcat8_old /etc/default/tomcat8
cp -a /etc/tomcat8_old /etc/tomcat8

The output of lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

Joan (aseques)
no longer affects: tomcat7
description: updated
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

The fix in that new version is actually supposed to fix just one kind of such an issue.
    * Fix an upgrade error when JAVA_OPTS in /etc/default/tomcat8
      contains the '%' character (LP: #1666570).

Thanks for your report, and the workaround.
But to understand what in particular is breaking in your case we need to understand what is actually going on.
You could follow comment 10 on the bug you linked [1] and provide that info.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853173#10

Changed in tomcat8 (Ubuntu):
status: New → Incomplete
Changed in tomcat8 (Debian):
status: Unknown → New
Changed in tomcat8 (Debian):
status: New → Fix Released
Revision history for this message
Joan (aseques) wrote :

Tomcat 8.0 is no longer relevant, I'm closing this.

Changed in tomcat8 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.