Public bug reported: 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"/ ** Affects: tomcat6 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tomcat6 in Ubuntu. https://bugs.launchpad.net/bugs/889028 Title: upgrade to tomcat6 6.0.28-2ubuntu1.5 failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/889028/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs