3

我想在我的 ubuntu 服务器上安装 tomcat6,但是当我说 sudo apt-get install tomcat6. 当我安装tomcat7时,我可以成功安装它。但是我在安装tomcat6时遇到了这个错误,

    ubuntu@ip-10-202-47-144:/var/solr$ sudo apt-get install tomcat6
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:
 tomcat6 : Depends: tomcat6-common (>= 6.0.35-1ubuntu3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有任何想法吗 ?

4

1 回答 1

7

确保在安装 tomcat 6 之前删除 tomcat 7 或任何其他版本的 tomcat,这是删除它的方法

sudo apt-get remove tomcat7-common

这是给你的链接 https://askubuntu.com/questions/173981/installing-tomcat-7-on-ubuntu-server-12-04

于 2013-02-24T22:03:46.353 回答