upgrade to tomcat6 6.0.28-2ubuntu1.5 failed

Bug #889028 reported by wurbj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

The installation of the security update of tomcat6 failed with the message:

Setting up tomcat6 (6.0.28-2ubuntu1.5) ...
sed: -e expression #1, char 130: unknown option to `s'
dpkg: error processing tomcat6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat6
E: Sub-process /usr/bin/dpkg returned an error code (1)

When investigating the problem in the post-installation script of tomcat6 (added -x to /bin/sh) I found that the error was caused by a JAVA_OPTS option, set in /etc/default/tomcat6, which contained forward slashes (because it specified a path). Which caused the sed commando in line 23 in /var/lib/dpkg/info/tomcat6.postinst to fail.

Line 23:

sed "s/^JAVA_OPTS=.*$/JAVA_OPTS=\"$JAVA_OPTS\"/" \

evaluated to:

sed s/^JAVA_OPTS=.*$/JAVA_OPTS="-Djava.awt.headless=true -Xmx2048m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -Dsolr.solr.home=/srv/solr/cores"/

Revision history for this message
James Page (james-page) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 654549, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.