package tomcat6 6.0.18-0ubuntu6.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #417212 reported by Thooyavan
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
tomcat6 (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: tomcat6

Reading package lists... Done
Building dependency tree
Reading state information... Done
tomcat6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up tomcat6 (6.0.18-0ubuntu6.1) ...
chgrp: cannot access `/etc/tomcat6/tomcat-users.xml': No such file or directory
dpkg: error processing tomcat6 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat6
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: tomcat6 6.0.18-0ubuntu6.1
PackageArchitecture: all
SourcePackage: tomcat6
Title: package tomcat6 6.0.18-0ubuntu6.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-15-generic i686

Revision history for this message
Thooyavan (thooyavan) wrote :
Revision history for this message
Thooyavan (thooyavan) wrote :
Download full text (21.1 KiB)

root@SecuredZone:~# apt-get install tomcat6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ca-certificates ca-certificates-java default-jre-headless gcj-4.3-base icedtea-6-jre-cacao java-common jsvc libaccess-bridge-java libcommons-collections-java
  libcommons-daemon-java libcommons-dbcp-java libcommons-pool-java libecj-java libecj-java-gcj libgcj-bc libgcj-common libgcj9-0 libgcj9-jar libservlet2.5-java
  libtomcat6-java openjdk-6-jre-headless openjdk-6-jre-lib openssl rhino tomcat6-common tzdata-java
Suggested packages:
  default-jre equivs java-virtual-machine classpath-doc ecj ant libgcj9-dbg libgcj9-0-awt sun-java6-fonts ttf-wqy-zenhei ttf-telugu-fonts ttf-oriya-fonts
  ttf-kannada-fonts ttf-bengali-fonts openssl-doc rhino-doc tomcat6-docs tomcat6-admin tomcat6-examples
The following NEW packages will be installed:
  ca-certificates ca-certificates-java default-jre-headless gcj-4.3-base icedtea-6-jre-cacao java-common jsvc libaccess-bridge-java libcommons-collections-java
  libcommons-daemon-java libcommons-dbcp-java libcommons-pool-java libecj-java libecj-java-gcj libgcj-bc libgcj-common libgcj9-0 libgcj9-jar libservlet2.5-java
  libtomcat6-java openjdk-6-jre-headless openjdk-6-jre-lib openssl rhino tomcat6 tomcat6-common tzdata-java
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/60.1MB of archives.
After this operation, 153MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package openjdk-6-jre-lib.
(Reading database ... 126132 files and directories currently installed.)
Unpacking openjdk-6-jre-lib (from .../openjdk-6-jre-lib_6b14-1.4.1-0ubuntu11_all.deb) ...
Selecting previously deselected package openssl.
Unpacking openssl (from .../openssl_0.9.8g-15ubuntu3.2_i386.deb) ...
Selecting previously deselected package ca-certificates.
Unpacking ca-certificates (from .../ca-certificates_20080809_all.deb) ...
Selecting previously deselected package ca-certificates-java.
Unpacking ca-certificates-java (from .../ca-certificates-java_20081028_all.deb) ...
Selecting previously deselected package tzdata-java.
Unpacking tzdata-java (from .../tzdata-java_2009j-0ubuntu0.9.04_all.deb) ...
Selecting previously deselected package java-common.
Unpacking java-common (from .../java-common_0.30ubuntu4_all.deb) ...
Selecting previously deselected package default-jre-headless.
Unpacking default-jre-headless (from .../default-jre-headless_1.6-30ubuntu4_i386.deb) ...
Selecting previously deselected package rhino.
Unpacking rhino (from .../archives/rhino_1.7R1-2_all.deb) ...
Selecting previously deselected package libaccess-bridge-java.
Unpacking libaccess-bridge-java (from .../libaccess-bridge-java_1.24.0-0ubuntu2_all.deb) ...
Selecting previously deselected package openjdk-6-jre-headless.
Unpacking openjdk-6-jre-headless (from .../openjdk-6-jre-headless_6b14-1.4.1-0ubuntu11_i386.deb) ...
Selecting previously deselected package icedtea-6-jre-cacao.
Unpacking icedtea-6-jre-cacao (from .../icedtea-6-jre-cacao_6b14-1.4.1-0ubuntu11_i386.deb) ...
Select...

Revision history for this message
Thierry Carrez (ttx) wrote :

Can't reproduce this. Please try:
$ sudo apt-get purge tomcat6
$ sudo apt-get install tomcat6

Changed in tomcat6 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Chuck Short (zulcss) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in tomcat6 (Ubuntu):
status: Incomplete → Invalid
helix84 (helix84)
Changed in tomcat6 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
helix84 (helix84) wrote :
Download full text (3.9 KiB)

Reopening, me too:

$ sudo aptitude remove --purge tomcat6
[sudo] password for ctenar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
  libcommons-dbcp-java{pu} libcommons-pool-java{pu} libecj-java{pu} libtomcat6-java{pu} tomcat6 tomcat6-common{pu}
0 packages upgraded, 0 newly installed, 6 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 6476kB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 559101 files and directories currently installed.)
Removing tomcat6 ...
 * Stopping Tomcat servlet engine tomcat6 [ OK ]
Processing triggers for ureadahead ...
(Reading database ... 559089 files and directories currently installed.)
Removing tomcat6-common ...
Removing libtomcat6-java ...
Removing libcommons-dbcp-java ...
Removing libcommons-pool-java ...
Removing libecj-java ...
Processing triggers for doc-base ...
Processing 1 removed doc-base file(s)...
Registering documents with scrollkeeper...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

$ aptitude search tomcat6
p libtomcat6-java - Servlet and JSP engine -- core libraries
c tomcat6 - Servlet and JSP engine
p tomcat6-admin - Servlet and JSP engine -- admin web applications
p tomcat6-common - Servlet and JSP engine -- common files
p tomcat6-docs - Servlet and JSP engine -- example web applications
p tomcat6-examples - Servlet and JSP engine -- example web applications
p tomcat6-user - Servlet and JSP engine -- tools to create user instances

$ sudo updatedb
$ locate tomcat6
/data/archives/libtomcat6-java_6.0.20-2ubuntu2.1_all.deb
/data/archives/tomcat6-admin_6.0.20-2ubuntu2.1_all.deb
/data/archives/tomcat6-common_6.0.20-2ubuntu2.1_all.deb
/data/archives/tomcat6_6.0.20-2ubuntu2.1_all.deb
/etc/tomcat6
/etc/cron.daily/tomcat6
/etc/default/tomcat6
/etc/init.d/tomcat6
/etc/rc0.d/K08tomcat6
/etc/rc1.d/K08tomcat6
/etc/rc2.d/S92tomcat6
/etc/rc3.d/S92tomcat6
/etc/rc4.d/S92tomcat6
/etc/rc5.d/S92tomcat6
/etc/rc6.d/K08tomcat6
/etc/tomcat6/Catalina
/etc/tomcat6/catali...

Read more...

Revision history for this message
helix84 (helix84) wrote :

$ sudo rm -rf /etc/tomcat6
$ 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:
  libcommons-dbcp-java{a} libcommons-pool-java{a} libecj-java{a} libtomcat6-java{a} tomcat6 tomcat6-common{a}
0 packages upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/4505kB of archives. After unpacking 6476kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Selecting previously deselected package libcommons-pool-java.
(Reading database ... 558966 files and directories currently installed.)
Unpacking libcommons-pool-java (from .../libcommons-pool-java_1.4-0ubuntu1_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.5.1-0ubuntu1_all.deb) ...
Selecting previously deselected package libtomcat6-java.
Unpacking libtomcat6-java (from .../libtomcat6-java_6.0.20-2ubuntu2.1_all.deb) ...
Selecting previously deselected package tomcat6-common.
Unpacking tomcat6-common (from .../tomcat6-common_6.0.20-2ubuntu2.1_all.deb) ...
Selecting previously deselected package tomcat6.
Unpacking tomcat6 (from .../tomcat6_6.0.20-2ubuntu2.1_all.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for ureadahead ...
Setting up libcommons-pool-java (1.4-0ubuntu1) ...

Setting up libcommons-dbcp-java (1.2.2-1ubuntu1) ...
Setting up libecj-java (3.5.1-0ubuntu1) ...
Setting up libtomcat6-java (6.0.20-2ubuntu2.1) ...
Setting up tomcat6-common (6.0.20-2ubuntu2.1) ...
Setting up tomcat6 (6.0.20-2ubuntu2.1) ...
chgrp: cannot access `/etc/tomcat6/tomcat-users.xml': No such file or directory
dpkg: error processing tomcat6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat6
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up tomcat6 (6.0.20-2ubuntu2.1) ...
chgrp: cannot access `/etc/tomcat6/tomcat-users.xml': No such file or directory
dpkg: error processing tomcat6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

Revision history for this message
helix84 (helix84) wrote :

The funny thing is Synaptic is able to purge the package while Aptitude isn't. This is reproducible.

Revision history for this message
Thierry Carrez (ttx) wrote :

Except that I can't reproduce it on a new setup: "sudo aptitude purge tomcat6" just purges the configuration files, including /etc/tomcat6/tomcat-users.xml...

Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like the problem is that you ran "sudo aptitude remove --purge" instead of "sudo aptitude purge", resulting in an non-purged tomcat6 package. "remove --purge" is an APT option, not an aptitude one.

Changed in tomcat6 (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.