Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Ubuntu12.04上安装tomcat6_Tomcat_Ubuntu_Tomcat6_Apt Get - Fatal编程技术网

在Ubuntu12.04上安装tomcat6

在Ubuntu12.04上安装tomcat6,tomcat,ubuntu,tomcat6,apt-get,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 sta

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

有什么想法吗?

在安装tomcat 6之前,请确保已删除tomcat 7或任何其他版本的tomcat

sudo apt-get remove tomcat7-common
这是给你的链接

np,我很高兴能帮上忙。