Tomcat 7 安装在 Ubuntu 12.04LTS 上



我最近升级到 Ubuntu 12.04LTS 并安装了 Tomcat 7,但出现以下错误:

root@me:/# sudo apt-get install tomcat7 tomcat7-docs tomcat7-examples tomcat7-admin -y
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
tomcat7 : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed
tomcat7-admin : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed
tomcat7-docs : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed
tomcat7-examples : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

请帮我解决这个问题。

显然,

由于一些冲突,您需要在安装 tomcat7 之前删除tomcat6-common

请参阅 https://askubuntu.com/questions/173981/installing-tomcat-7-on-ubuntu-server-12-04。

你可以更好地从这里下载软件包,解压缩并使用它。

最新更新