Public bug reported: Binary package hint: tomcat6
problem occurred parsing this in /var/lib/dpkg/info/tomcat6.postinst dpkg --configure --pending sed: -e expression #1, char 175: unknown option to `s' my defaults file is modified like this : john@box# tail /etc/default/tomcat6 # Enabling JMX JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9003" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.password.file=/etc/tomcat6/jmxremote.password" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.access.file=/etc/tomcat6/jmxremote.access" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false" .. so I edited /var/lib/dpkg/info/tomcat6.postinst to make the sed command use a different delimiter, because the jmxremote.*.file lines (above) contain forward-slashes that are being interpreted as delimiters by sed. prev cat $TEMPLATE \ | sed "s/^TOMCAT6_USER=.*$/TOMCAT6_USER=$TOMCAT6_USER/" \ | sed "s/^TOMCAT6_GROUP=.*$/TOMCAT6_GROUP=$TOMCAT6_GROUP/" \ | sed "s/^JAVA_OPTS=.*$/JAVA_OPTS=\"$JAVA_OPTS\"/" \ fixed cat $TEMPLATE \ | sed "s|^TOMCAT6_USER=.*$|TOMCAT6_USER=$TOMCAT6_USER|" \ | sed "s|^TOMCAT6_GROUP=.*$|TOMCAT6_GROUP=$TOMCAT6_GROUP|" \ | sed "s|^JAVA_OPTS=.*$|JAVA_OPTS=\"$JAVA_OPTS\"|" \ - john.. 2011-01-27 ** Affects: tomcat6 (Ubuntu) Importance: Undecided Status: New ** Tags: default postinst sed tomcat6 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/708572 Title: tomcat6 postinst script err (sed) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs