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.

-- 
package libxml-sax-expat-perl 0.40-1 failed to install/upgrade: subprocess 
post-installation script returned error exit status 1
https://bugs.launchpad.net/bugs/365383
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to