Here I go... - I don't have an existing /etc/tomcat6 before installation (directory /etc/tomcat6 does not exist before installation). - There's nothing listening to ports 8009 or 8080 prior to tomcat6 installation. "sudo netstat -ntupl" follows:
------------------ [EMAIL PROTECTED]:~$ sudo netstat -ntupl Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 5011/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 5195/master udp 0 0 0.0.0.0:36682 0.0.0.0:* 4793/avahi-daemon: udp 0 0 0.0.0.0:5353 0.0.0.0:* 4793/avahi-daemon: udp 0 0 0.0.0.0:631 0.0.0.0:* 5011/cupsd ------------------ - There is nothing preventing local connections to port 8009 (you mean a firewall or similar, don't you?) - "sudo aptitude install tomcat6" follows: ------------------ [EMAIL PROTECTED]:~$ LANG=C sudo aptitude install tomcat6 Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done The following NEW packages will be installed: jsvc{a} libcommons-collections-java{a} libcommons-daemon-java{a} libcommons-dbcp-java{a} libcommons-pool-java{a} libecj-java{a} libecj-java-gcj{a} libservlet2.5-java{a} libtomcat6-java{a} tomcat6 tomcat6-common{a} 0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/6833kB of archives. After unpacking 15.6MB will be used. Do you want to continue? [Y/n/?] Writing extended state information... Done Selecting previously deselected package libcommons-daemon-java. (Reading database ... 161984 files and directories currently installed.) Unpacking libcommons-daemon-java (from .../libcommons-daemon-java_1.0.2~svn20061127-9ubuntu2_all.deb) ... Selecting previously deselected package jsvc. Unpacking jsvc (from .../jsvc_1.0.2~svn20061127-9ubuntu2_amd64.deb) ... Selecting previously deselected package libcommons-collections-java. Unpacking libcommons-collections-java (from .../libcommons-collections-java_2.1.1-8ubuntu1_all.deb) ... Selecting previously deselected package libcommons-pool-java. Unpacking libcommons-pool-java (from .../libcommons-pool-java_1.3-1ubuntu2_all.deb) ... Selecting previously deselected package libcommons-dbcp-java. Unpacking libcommons-dbcp-java (from .../libcommons-dbcp-java_1.2.2-1ubuntu1_all.deb) ... Selecting previously deselected package libecj-java. Unpacking libecj-java (from .../libecj-java_3.3.0+0728-10_all.deb) ... Selecting previously deselected package libecj-java-gcj. Unpacking libecj-java-gcj (from .../libecj-java-gcj_3.3.0+0728-10_amd64.deb) ... Selecting previously deselected package libservlet2.5-java. Unpacking libservlet2.5-java (from .../libservlet2.5-java_6.0.18-0ubuntu3_all.deb) ... Selecting previously deselected package libtomcat6-java. Unpacking libtomcat6-java (from .../libtomcat6-java_6.0.18-0ubuntu3_all.deb) ... Selecting previously deselected package tomcat6-common. Unpacking tomcat6-common (from .../tomcat6-common_6.0.18-0ubuntu3_all.deb) ... Selecting previously deselected package tomcat6. Unpacking tomcat6 (from .../tomcat6_6.0.18-0ubuntu3_all.deb) ... Processing triggers for doc-base ... Processing 3 added doc-base file(s)... Registering documents with scrollkeeper... Processing triggers for man-db ... Setting up libcommons-daemon-java (1.0.2~svn20061127-9ubuntu2) ... Setting up jsvc (1.0.2~svn20061127-9ubuntu2) ... Setting up libcommons-collections-java (2.1.1-8ubuntu1) ... Setting up libcommons-pool-java (1.3-1ubuntu2) ... Setting up libcommons-dbcp-java (1.2.2-1ubuntu1) ... Setting up libecj-java (3.3.0+0728-10) ... Setting up libecj-java-gcj (3.3.0+0728-10) ... Setting up libservlet2.5-java (6.0.18-0ubuntu3) ... Setting up libtomcat6-java (6.0.18-0ubuntu3) ... Setting up tomcat6-common (6.0.18-0ubuntu3) ... Setting up tomcat6 (6.0.18-0ubuntu3) ... Adding system user `tomcat6' (UID 114) ... Adding new group `tomcat6' (GID 129) ... Adding new user `tomcat6' (UID 114) with group `tomcat6' ... Not creating home directory `/usr/share/tomcat6'. * Starting Tomcat servlet engine tomcat6 [ OK ] Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done ------------------ - "sudo netstat -nlp" follows: ------------------ [EMAIL PROTECTED]:~$ LANG=C sudo netstat -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 5011/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 5195/master tcp6 0 0 :::8009 :::* LISTEN 11377/jsvc tcp6 0 0 :::8080 :::* LISTEN 11377/jsvc udp 0 0 0.0.0.0:36682 0.0.0.0:* 4793/avahi-daemon: udp 0 0 0.0.0.0:5353 0.0.0.0:* 4793/avahi-daemon: udp 0 0 0.0.0.0:631 0.0.0.0:* 5011/cupsd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 16791 5405/X /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 16655 5376/gdm /var/run/gdm_socket unix 2 [ ACC ] STREAM LISTENING 17176 5634/gnome-keyring- /tmp/keyring-CCmXy1/socket unix 2 [ ACC ] STREAM LISTENING 17182 5634/gnome-keyring- /tmp/keyring-CCmXy1/ssh unix 2 [ ACC ] STREAM LISTENING 17188 5634/gnome-keyring- /tmp/keyring-CCmXy1/socket.pkcs11 unix 2 [ ACC ] STREAM LISTENING 17656 5804/kdeinit4: kdei /tmp/ksocket-angel/kdeinit4__0 unix 2 [ ACC ] STREAM LISTENING 17668 5805/klauncher /tmp/ksocket-angel/klauncherMT5805.slave-socket unix 2 [ ACC ] STREAM LISTENING 17726 5813/ksmserver /tmp/.ICE-unix/5813 unix 2 [ ACC ] STREAM LISTENING 15779 5195/master public/cleanup unix 2 [ ACC ] STREAM LISTENING 15786 5195/master private/tlsmgr unix 2 [ ACC ] STREAM LISTENING 18204 5909/gconfd-2 /tmp/orbit-angel/linc-1715-0-62664cba5b3bf unix 2 [ ACC ] STREAM LISTENING 18243 5906/evolution-alar /tmp/orbit-angel/linc-1712-0-7217771d70ef6 unix 2 [ ACC ] STREAM LISTENING 15790 5195/master private/rewrite unix 2 [ ACC ] STREAM LISTENING 15152 4771/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 15794 5195/master private/bounce unix 2 [ ACC ] STREAM LISTENING 15798 5195/master private/defer unix 2 [ ACC ] STREAM LISTENING 15802 5195/master private/trace unix 2 [ ACC ] STREAM LISTENING 18290 5912/bonobo-activat /tmp/orbit-angel/linc-1718-0-4d8887c2d5b8c unix 2 [ ACC ] STREAM LISTENING 15806 5195/master private/verify unix 2 [ ACC ] STREAM LISTENING 15810 5195/master public/flush unix 2 [ ACC ] STREAM LISTENING 15814 5195/master private/proxymap unix 2 [ ACC ] STREAM LISTENING 15818 5195/master private/proxywrite unix 2 [ ACC ] STREAM LISTENING 18343 5917/evolution-exch /tmp/orbit-angel/linc-171d-0-5ee16b631b05 unix 2 [ ACC ] STREAM LISTENING 15822 5195/master private/smtp unix 2 [ ACC ] STREAM LISTENING 15826 5195/master private/relay unix 2 [ ACC ] STREAM LISTENING 15830 5195/master public/showq unix 2 [ ACC ] STREAM LISTENING 15834 5195/master private/error unix 2 [ ACC ] STREAM LISTENING 18396 5921/evolution-data /tmp/orbit-angel/linc-1721-0-5ee16b6320ae7 unix 2 [ ACC ] STREAM LISTENING 15838 5195/master private/retry unix 2 [ ACC ] STREAM LISTENING 15842 5195/master private/discard unix 2 [ ACC ] STREAM LISTENING 18561 5951/nm-applet /tmp/orbit-angel/linc-173f-0-63a30632c2288 unix 2 [ ACC ] STREAM LISTENING 15846 5195/master private/local unix 2 [ ACC ] STREAM LISTENING 20346 6295/thunderbird-bi /tmp/orbit-angel/linc-1897-0-2f7817eb79330 unix 2 [ ACC ] STREAM LISTENING 15850 5195/master private/virtual unix 2 [ ACC ] STREAM LISTENING 15854 5195/master private/lmtp unix 2 [ ACC ] STREAM LISTENING 15858 5195/master private/anvil unix 2 [ ACC ] STREAM LISTENING 18952 6005/kdeinit Runnin /tmp/ksocket-angel/kdeinit__0 unix 2 [ ACC ] STREAM LISTENING 18954 6005/kdeinit Runnin /tmp/ksocket-angel/kdeinit-:0 unix 2 [ ACC ] STREAM LISTENING 15862 5195/master private/scache unix 2 [ ACC ] STREAM LISTENING 18959 6008/dcopserver [kd /tmp/.ICE-unix/dcop6008-1227251387 unix 2 [ ACC ] STREAM LISTENING 15866 5195/master private/maildrop unix 2 [ ACC ] STREAM LISTENING 15870 5195/master private/uucp unix 2 [ ACC ] STREAM LISTENING 18978 6011/klauncher [kde /tmp/ksocket-angel/klaunchery1b0ea.slave-socket unix 2 [ ACC ] STREAM LISTENING 15874 5195/master private/ifmail unix 2 [ ACC ] STREAM LISTENING 15878 5195/master private/bsmtp unix 2 [ ACC ] STREAM LISTENING 15988 5276/hald @/var/run/hald/dbus-ZBjFmRPBbr unix 2 [ ACC ] STREAM LISTENING 15882 5195/master private/scalemail-backend unix 2 [ ACC ] STREAM LISTENING 15886 5195/master private/mailman unix 2 [ ACC ] STREAM LISTENING 29363 7393/firefox /tmp/orbit-angel/linc-1ce1-0-7e3829745cc57 unix 2 [ ACC ] STREAM LISTENING 15200 4793/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 16790 5405/X @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 29583 5011/cupsd /var/run/cups/cups.sock unix 2 [ ACC ] STREAM LISTENING 17962 5883/nepomukservice /home/angel/.kde/share/apps/nepomuk/socket unix 2 [ ACC ] STREAM LISTENING 15985 5276/hald @/var/run/hald/dbus-QFiitPnQxu unix 2 [ ACC ] STREAM LISTENING 17569 5762/dbus-daemon @/tmp/dbus-HjtAbCmxqq unix 2 [ ACC ] STREAM LISTENING 14845 4566/acpid /var/run/acpid.socket ------------------ - "sudo /etc/init.d/tomcat6 stop" follows: ------------------ [EMAIL PROTECTED]:~$ sudo /etc/init.d/tomcat6 stop * Stopping Tomcat servlet engine tomcat6 [EMAIL PROTECTED]:~$ ------------------ Everything goes fine, but the command takes about a minute to finish, and there are some errors in /var/log/tomcat6/catalina-*.log (the command "sudo /etc/init.d/tomcat6 stop" is performed at 12:19:23): /var/log/catalina.2008-11-21.log: ----------------- 21-nov-2008 12:14:27 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 21-nov-2008 12:14:27 org.apache.coyote.http11.Http11Protocol init INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080 21-nov-2008 12:14:27 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 371 ms 21-nov-2008 12:14:27 org.apache.catalina.users.MemoryUserDatabase save WARNING: User database is not persistable - no write permissions on directory 21-nov-2008 12:14:27 org.apache.catalina.core.StandardService start INFO: Arrancando servicio Catalina 21-nov-2008 12:14:27 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 21-nov-2008 12:14:28 org.apache.coyote.http11.Http11Protocol start INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080 21-nov-2008 12:14:28 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 21-nov-2008 12:14:28 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/43 config=null 21-nov-2008 12:14:28 org.apache.catalina.startup.Catalina start INFO: Server startup in 390 ms 21-nov-2008 12:19:23 org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 21-nov-2008 12:22:32 org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:381) at java.net.Socket.connect(Socket.java:537) at java.net.Socket.connect(Socket.java:487) at java.net.Socket.<init>(Socket.java:384) at java.net.Socket.<init>(Socket.java:227) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:486) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283) at org.apache.jk.server.JkMain.pause(JkMain.java:681) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153) at org.apache.catalina.connector.Connector.pause(Connector.java:1073) at org.apache.catalina.core.StandardService.stop(StandardService.java:563) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.stop(Bootstrap.java:300) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.daemon.support.DaemonLoader.stop(DaemonLoader.java:200) 21-nov-2008 12:22:33 org.apache.catalina.core.StandardService stop INFO: Parando servicio Catalina 21-nov-2008 12:22:33 org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 -- package tomcat6-admin 6.0.18-0ubuntu3 failed to install/upgrade: el subproceso post-installation script devolvi? el c?digo de salida de error 255 https://bugs.launchpad.net/bugs/299866 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs