3

I would like to install tomcat7 (NOT tomcat8) on ubuntu 18.04. I figured I could enable the universe repo by doing the following

sudo add-apt-repository universe

however, when I try and do sudo apt-get install tomcat7 it says it's not found?

  • 2
    Universe is already enabled by default typically. Tomcat 7 is not provided through the repositories, probably because Tomcat 7 is old and probably unmaintained. (Tomcat 8 is recently EOL upstream as of June 30th, and Tomcat 9 is now the maintained release) – Thomas Ward Jul 22 '18 at 4:43
  • 1
    packages.ubuntu.com/source/bionic/tomcat7 so it seems possible yes. – Rinzwind Jul 22 '18 at 6:55
  • 1
    Alright, so it seems doable? How would I go about doing it? – Joe Jul 22 '18 at 15:18
4

Add the following lines to the bottom of your /etc/apt/sources.list file

deb http://us.archive.ubuntu.com/ubuntu/ xenial main
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe

Then run

sudo apt-get update
sudo apt-get install tomcat7
0

tomcat7 is EOL and even though it's listed in this link, it doesn't include the tomcat7 server - it only includes the packages:

  • libservlet3.0-java
  • libservlet3.0-java-doc

For comparison, check out the source for tomcat9 - it includes the tomcat9 package: https://packages.ubuntu.com/source/bionic/java/tomcat9

New contributor
marvin is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.