I get the following error when installing Tomcat7:
Setting up tomcat7 (7.0.26-1ubuntu1.1) ...
chmod: cannot access `/etc/tomcat7/tomcat-users.xml': No such file or directory
dpkg: error processing tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
>Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
And I get this error when I try to apt-get remove Tomcat7:
Removing tomcat7 ...
* tomcat7 is not installed
invoke-rc.d: initscript tomcat7, action "stop" failed.
How do I fix this to install Tomcat 7 correctly?
apt-get purge tomcat7
and reinstall it. See if it helps. I just wonder why you would like to use the deb package from official repository, for Tomcat, I'd rather download the binary and extract it (chown) and run as a normal user. If you want it to start during boot, there are plenty of options out there. – Terry Wang Dec 14 '12 at 05:47default-jre-headless | java6-runtime-headless | java6-runtime | java-6-runtime
. You can use the packaged tomcat7 with the Oracle JDK. – Robie Basak Nov 22 '13 at 18:51