我尝试tomcat7
在我的计算机上安装但出现以下错误。
Job for tomcat7.service failed because the control process exited with error code. See "systemctl status tomcat7.service" and "journalctl -xe" for details.
invoke-rc.d: initscript tomcat7, action "start" failed.
dpkg: error processing package tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up authbind (2.1.1+nmu1) ...
Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试使用以下命令卸载 tomcat7 然后重新安装,但没有解决方案。
sudo apt-get autoremove tomcat7
它删除了 tomcat7 但重新安装时出现同样的错误。
请指出这里出了什么问题。
答案1
如果您可以从头开始安装,请尝试此解决方案:
sudo aptitude purge tomcat7
whereis tomcat7
sudo rm -rf /etc/tomcat7 /usr/share/tomcat7
sudo apt-get autoremove
sudo apt-get autoclean
sudo aptitude install tomcat7