[Bug 662638] [NEW] Postinst fails if webapps/ROOT is a symlink

Disconnect 662638 at bugs.launchpad.net
Mon Oct 18 13:20:59 BST 2010

Public bug reported:

Binary package hint: tomcat6

Ubuntu Lucid, amd64, tomcat6 6.0.24-2ubuntu1.4

For historic reasons, we have /var/lib/tomcat6/webapps/ROOT as a symlink
into the deployed application. During postinst, dpkg fails:

Setting up tomcat6 (6.0.24-2ubuntu1.4) ...
cp: cannot overwrite non-directory `/var/lib/tomcat6/webapps/ROOT' with directory `/usr/share/tomcat6/webapps/default_root'
dpkg: error processing tomcat6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:

Unless there is a policy reason, I would expect the postinst to ignore
changes in /var/lib/tomcat6/webapps, especially since it is not listed
as part of the package upstream/static files (dpkg -L tomcat6 | grep
ROOT - no results)

** Affects: tomcat6 (Ubuntu)
     Importance: Undecided
         Status: New

Postinst fails if webapps/ROOT is a symlink
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

More information about the Ubuntu-server-bugs mailing list