[Bug 690138] Re: tomcat6 installation failure on Ubuntu 10.10
Juha Litola
690138 at bugs.launchpad.net
Tue Dec 14 13:43:24 GMT 2010
Ok, I found the problem.
I have following definition for JAVA_OPTS:
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
-DHUDSON_HOME=/DBS/hudson -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=6969
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
postinstall script has this on line 26
| sed "s/^JAVA_OPTS=.*$/JAVA_OPTS=\"$JAVA_OPTS\"/" \
Now when JAVA_OPTS get expanded, the '/' character ends the regexp and
gives sed-failure
sed: -e expression #1, char 102: unknown option to `s'
When I removed JAVA_OPTS from /etc/tomcat6/default, I was able to install the package. So to fix this, value of $JAVA_OPTS would need to be escaped before putting it to sed.
--
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/690138
Title:
tomcat6 installation failure on Ubuntu 10.10
More information about the Ubuntu-server-bugs
mailing list