package tomcat6 (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #700999 reported by jayachandra
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tomcat6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: tomcat6

When removing all previously installed packages of tomcat6 in Ubuntu Linux OS,i am getting this error and next it will not installing the system.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: tomcat6 (not installed)
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic i686
Architecture: i386
Date: Sat Jan 8 12:07:44 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
SourcePackage: tomcat6
Title: package tomcat6 (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

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

Error is:
Setting up tomcat6 (6.0.24-2ubuntu1.5) ...
chmod: 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

You apparently removed manually the /etc/tomcat6 directory contents. If you want to purge configuration files, you should use "apt-get purge" instead, otherwise you break dpkg handling of conffiles.

Run:
sudo apt-get purge tomcat6

Then you should be able to reinstall tomcat6 without errors.

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

Other bug subscribers

Remote bug watches

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