当我试图安装任何软件或重新安装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 Errors were encountered while processing: tomcat7
E:
Sub-process /usr/bin/dpkg returned an error code (1)我尝试通过各种方式重新安装tomcat7,例如:
1.
dpkg -l | grep -i tomcat要删除tomcat库:
dpkg -P <library-name>然后,使用以下命令重新安装tomcat7:
sudo apt-get install tomcat7
/etc/init.d/tomcat7 stop
/etc/init.d/tomcat7 start2.
sudo apt-get autoremove tomcat7
sudo apt-get install tomcat7但它并没有解决问题,同样的错误不断出现。
接下来我该试试什么呢?
发布于 2016-11-09 05:03:51
在安装java、jre和jdk之前,尝试了一系列不同的东西。
DigitalOcean如何在Ubuntu12.04上安装Apt-Get /上安装
还更改了/usr/share/tomcat7/bin/setclasspath.sh以添加以下行:
export CATALINA_BASE=/var/lib/tomcat7
export CATALINA_HOME=/usr/share/tomcat7然后我重新启动了我的电脑。
https://askubuntu.com/questions/814930
复制相似问题