2011-12-30 39 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