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?
Error —

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found out the problem. I am posting this for future reference.
This problem can be solved by using the command —
This removes all the related dependencies. After this I did —