Error Installing Tomcat 7
Here's what I'm getting:
apt-get install tomcat7
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package tomcat7
1 Reply
There could be a few reasons for this error. One of them is the version of Tomcat you're trying to install. Basically, as of 5/2019, the following page from Stack Overflow is pointing out that you need to install tomcat 8 instead of 7 by using this command:
sudo apt-get install tomcat8
However, if you're running Ubuntu 19.04 you'll want to install Tomcat 9:
sudo apt-get install tomacat9
Also, make sure that you have your hostname set properly, and you've also gotten the proper upgrade and update:
sudo apt-get update && apt-get upgrade
Our guide on installing Tomcat gives you the step-by-step instructions: