2012-07-03 57 views
5

我在Ubuntu上安装了tomcat7,然后删除了/ etc/tomcat7文件夹以完全删除它。现在我想重新安装Tomcat7,但sudo apt-get install tomcat7命令给我错误。有人可以帮我解决这个问题吗?在Ubuntu 12.04上重新安装Apache Tomcat7

错误 - enter image description here

回答

28

我发现了这个问题。我发布这个供将来参考。

这个问题可以通过使用命令来解决 -

sudo apt-get purge tomcat7 

这将删除所有相关的依赖性。在此之后,我做了 -

sudo apt-get install tomcat7