Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve installation error, while installing tomcat

I got an error while installing tomcat 7. I have searched for it, but couldn't find any solutions.

The error is..

  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  E: Unable to locate package tomcat 7

Please help me...
like image 868
jinose c Avatar asked Apr 08 '26 20:04

jinose c


2 Answers

Looks like you have a space between tomcat and 7. Use the following command to install tomcat7: sudo apt-get install tomcat7

[Update]
1. Add deb http://security.ubuntu.com/ubuntu trusty-security main universe to /etc/apt/sources.list file.
2. Run sudo apt-get update
3. Run sudo apt-get install tomcat7

like image 150
RaviTezu Avatar answered Apr 11 '26 07:04

RaviTezu


As of now (5-5-2019) use 8 instead of 7. sudo apt-get install tomcat8

like image 31
Joe Giusti Avatar answered Apr 11 '26 07:04

Joe Giusti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!