Error Installing Tomcat 7

Linode Staff
I want to install Tomcat 7, but I'm getting an error. How can I fix this?

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

Tomcat Installation Error

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:

Install Tomcat on Ubuntu

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct