Comment 2 for bug 611721

Revision history for this message
Disconnect (dismc) wrote :

root@foo:~# aptitude -vvv install tomcat6
..
The following partially installed packages will be configured:
  tomcat6
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Setting up tomcat6 (6.0.24-2ubuntu1.2) ...
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)
..
root@foo:~# dpkg --configure -a -D2
Setting up tomcat6 (6.0.24-2ubuntu1.2) ...
D000002: fork/exec /var/lib/dpkg/info/tomcat6.postinst ( configure )
dpkg: error processing tomcat6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat6
root@foo:~# sed -i -e s_addg_#addg_ /var/lib/dpkg/info/tomcat6.postinst
  (verified that the only affected line is addgroup)
root@foo:~# dpkg --configure -a
Setting up tomcat6 (6.0.24-2ubuntu1.2) ...
 * Starting Tomcat servlet engine tomcat6
Using CATALINA_BASE: /var/lib/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /tmp/tomcat6-tmp
Using JRE_HOME: /usr/lib/jvm/java-6-sun
Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar
   ...done.