安装时如何解决安装错误 tomcat

How to solve installation error, while installing tomcat

安装时出现错误tomcat 7. 我已经搜索过了,但找不到任何解决方案。

The error is..

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

Please help me...

看起来您在 tomcat7 之间有一个 space。使用以下命令安装tomcat7:sudo apt-get install tomcat7

[更新]
1. 添加 deb http://security.ubuntu.com/ubuntu trusty-security main universe 到 /etc/apt/sources.list 文件。
2. 运行 sudo apt-get update
3.运行sudo apt-get install tomcat7

截至目前(5-5-2019)使用 8 而不是 7。 sudo apt-get 安装 tomcat8

您需要使用最新的 tomcat 版本 - tomcat9: "sudo apt install tomcat9"