在Ubuntu12.04上安装tomcat6

时间:2013-02-24 22:00:21

标签: tomcat ubuntu tomcat6 apt-get

我想在我的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.

有什么想法吗?

1 个答案:

答案 0 :(得分: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