Linux 在 Ubuntu 12.04 上重新安装 Apache Tomcat7
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11320316/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Reinstalling Apache Tomcat7 on Ubuntu 12.04
提问by Fox
I had installed tomcat7 on ubuntu and then I deleted the /etc/tomcat7 folder to completely remove it. Now I want to reinstall Tomcat7, but the sudo apt-get install tomcat7 command gives me error. Can someone help me out with this issue?
我已经在 ubuntu 上安装了 tomcat7,然后我删除了 /etc/tomcat7 文件夹以完全删除它。现在我想重新安装Tomcat7,但是sudo apt-get install tomcat7 命令给了我错误。有人可以帮我解决这个问题吗?
Error --
错误 -
采纳答案by Fox
I found out the problem. I am posting this for future reference.
我发现了问题所在。我发布此信息以供将来参考。
This problem can be solved by using the command --
这个问题可以通过使用命令来解决——
sudo apt-get purge tomcat7
This removes all the related dependencies. After this I did --
这将删除所有相关的依赖项。在这之后我做了——
sudo apt-get install tomcat7