2011-12-30 35 views
0

我正在使用Ubuntu 11. 我通过Synaptic软件包管理器安装了tomcat6,并在Netbeans 7.0.1中使用它。ubuntu:从突触安装后“tomcat6未安装”

昨天工作正常。 今天,当我试图通过Netbeans的部署,我得到了一个消息:

Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager" role in the Tomcat customizer in the Server Manager. See the server log for details.

所以我添加下面一行到tomcat-users.xml中:

<user username="manager" password="manager" roles="manager"/>

然后我做了sudo /etc/init.d/tomcat6 restart和得到:

* tomcat6 is not installed

咦?

回答

3

我会尝试sudo apt-get purge tomcat6,然后尝试sudo apt-get install tomcat6

见当您尝试清除会发生什么。

此外,在Ubuntu 11中,您只需键入sudo service tomcat6 restart

+0

我已清除并安装。在安装结束时我得到'*启动tomcat servlet引擎tomcat6 [失败] invoke-rc.d:initscript tomcat6,动作“开始”失败。“ – Aliza 2011-12-30 09:42:19

+0

要小心,但是http://ubuntuforums.org/showthread。 php?t = 1707889建议:'sudo apt-get purge tomcat6 authbind ca-certificates-java default -jre-headless icedtea-6-jre-cacao java -common libavahi-client3 libavahi-common-data libavahi-common3 libcommons-collections- java libcommons-dbcp -java libcommons-pool-java libcups2 libecj -java libjpeg62 liblcms1 libnspr4-0d libnss3-1d libservlet2.5 -java libtomcat6 -java openjdk-6-jre-headless openjdk-6 -jre-lib tomcat6 tomcat6-common tzdata -java' – TryTryAgain 2011-12-30 09:43:56

+0

所以我再次清除,通过突触重新安装,现在一切都恢复正常。但我仍然不明白这里发生了什么。 – Aliza 2011-12-30 09:57:06