package libxml-sax-expat-perl 0.40-1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #365383 reported by Carlos Arenas on 2009-04-23
40
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libxml-sax-expat-perl (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: libxml-sax-expat-perl

release = 9.04 RC

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: libxml-sax-expat-perl 0.40-1
PackageArchitecture: all
SourcePackage: libxml-sax-expat-perl
Title: package libxml-sax-expat-perl 0.40-1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-11-generic i686

Carlos Arenas (fooka) wrote :
Michael Vogt (mvo) wrote :

Here is the error:

Setting up libxml-libxml-perl (1.69.ds-1) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50...
Fatal: cannot call XML::SAX->save_parsers_debian().
You probably have a locally installed XML::SAX module.
See /usr/share/doc/libxml-sax-perl/README.Debian.gz .
dpkg: error processing libxml-libxml-perl (--configure):
 subprocess post-installation script returned error exit status 1

karlottofritz (max-jakob) wrote :

Same problem here. So can I (and how can I) remove the local version of the XML::SAX module and run apt-get again?

kumat (tianye-jinli2000) wrote :

Create a script using below content:
  #!/usr/bin/perl -w
  use ExtUtils::Packlist;
  use ExtUtils::Installed;
  $ARGV[0] or die "Usage: $0 Module::Name\n";
  my $mod = $ARGV[0];
  my $inst = ExtUtils::Installed->new();
  foreach my $item (sort($inst->files($mod))) {
    print "removing $item\n";
    unlink $item;
  }
  my $packfile = $inst->packlist($mod)->packlist_file();
  print "removing $packfile\n";
  unlink $packfile;

Assume you save it as 'rm_perl_mod.pl', run below command as root:
  # chmod u+x rm_perl_mod.pl
  # ./rm_perl_mod.pl XML::SAX
  # apt-get install libxml-sax-expat-perl

You will get the problem resolved.

karlottofritz (max-jakob) wrote :

Problem solved. Thank you very much kumat!!! This got the job done.

Changed in libxml-sax-expat-perl (Ubuntu):
status: New → Incomplete
Carlos Arenas (fooka) wrote :

I uninstalled the locally installed version of XML::SAX (re https://bugs.launchpad.net/bugs/365383), after which upgrading succeeded this time. It seems then that the bug mentioned above was causing this error.

Carlos Arenas (fooka) wrote :

I uninstalled the locally installed version of XML::SAX (re https://bugs.launchpad.net/bugs/365384), after which upgrading succeeded this time. It seems then that the bug mentioned above was causing this error.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers