← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 663612] Re: package libxml-sax-perl 0.96 dfsg-2 failed to install/upgrade:

 

The same happened for me when upgrading from lucid to precise. I
followed the idea reported in #296428 to reinstall libxml-
namespacesupport-perl.

Here's a log of my actions. Since upgrading to precise, dpkg complained
whenever I did anything:

$ sudo apt-get install (some-package-that-i-already-had)
(some-package-that-i-already-had) is already the newest version.
[...]
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? 
Setting up libxml-sax-perl (0.99+dfsg-1ubuntu0.1) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10...
Can't locate XML/NamespaceSupport.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/XML/SAX/PurePerl.pm line 20.
BEGIN failed--compilation aborted at /usr/share/perl5/XML/SAX/PurePerl.pm line 20.
Compilation failed in require at /usr/share/perl5/XML/SAX.pm line 153.
dpkg: error processing libxml-sax-perl (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of libxml-libxml-perl:
 libxml-libxml-perl depends on libxml-sax-perl; however:
  Package libxml-sax-perl is not configured yet.
dpkg: error processing libxml-libxml-perl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxml-sax-expat-perl:
 libxml-sax-expat-perl depends on libxml-sax-perl (>= 0.03); however:
  Package libxml-sax-perl is not configured yet.
dpkg: error processing libxml-sax-expat-perl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                        Errors were encountered while processing:
 libxml-sax-perl
 libxml-libxml-perl
 libxml-sax-expat-perl
E: Sub-process /usr/bin/dpkg returned an error code (1)

Following the advice above, I ensured that libxml-namespacesupport-perl
is there:

jan@zappa:~$ sudo apt-get install libxml-namespacesupport-perl 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxml-namespacesupport-perl is already the newest version.
The following packages were automatically installed and are no longer required:
  libgmp3c2 libopenjpeg2 libindicator-messages-status-provider1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

I removed libxml-namespacesupport-perl:

jan@zappa:~$ sudo apt-get remove libxml-namespacesupport-perl 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgmp3c2 libopenjpeg2 libindicator-messages-status-provider1
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  libxml-libxml-perl libxml-namespacesupport-perl libxml-sax-expat-perl
  libxml-sax-perl
0 upgraded, 0 newly installed, 4 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 1.426 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 348550 files and directories currently installed.)
Removing libxml-libxml-perl ...
Removing libxml-sax-expat-perl ...
Removing libxml-sax-perl ...
update-perl-sax-parsers: Unregistering Perl SAX parser XML::SAX::PurePerl with priority 50...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
Removing libxml-namespacesupport-perl ...
Processing triggers for man-db ...

Then I reinstalled libxml-namespacesupport-perl and the three packages
dpkg complained about:

jan@zappa:~$ sudo apt-get install libxml-namespacesupport-perl libxml-sax-perl libxml-libxml-perl libxml-sax-expat-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgmp3c2 libopenjpeg2 libindicator-messages-status-provider1
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed
  libxml-libxml-perl libxml-namespacesupport-perl libxml-sax-expat-perl
  libxml-sax-perl
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 481 kB of archives.
After this operation, 1.426 kB of additional disk space will be used.
Get:1 http://ubuntu.inode.at/ubuntu/ precise/main libxml-namespacesupport-perl all 1.09-3 [15,3 kB]
Get:2 http://ubuntu.inode.at/ubuntu/ precise-updates/main libxml-sax-perl all 0.99+dfsg-1ubuntu0.1 [64,5 kB]
Get:3 http://ubuntu.inode.at/ubuntu/ precise/main libxml-libxml-perl amd64 1.89+dfsg-1 [389 kB]
Get:4 http://ubuntu.inode.at/ubuntu/ precise/main libxml-sax-expat-perl all 0.40-2 [11,5 kB]
Fetched 481 kB in 0s (654 kB/s)                   
Selecting previously unselected package libxml-namespacesupport-perl.
(Reading database ... 348377 files and directories currently installed.)
Unpacking libxml-namespacesupport-perl (from .../libxml-namespacesupport-perl_1.09-3_all.deb) ...
Selecting previously unselected package libxml-sax-perl.
Unpacking libxml-sax-perl (from .../libxml-sax-perl_0.99+dfsg-1ubuntu0.1_all.deb) ...
Selecting previously unselected package libxml-libxml-perl.
Unpacking libxml-libxml-perl (from .../libxml-libxml-perl_1.89+dfsg-1_amd64.deb) ...
Selecting previously unselected package libxml-sax-expat-perl.
Unpacking libxml-sax-expat-perl (from .../libxml-sax-expat-perl_0.40-2_all.deb) ...
Processing triggers for man-db ...
Setting up libxml-namespacesupport-perl (1.09-3) ...
Setting up libxml-sax-perl (0.99+dfsg-1ubuntu0.1) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
Setting up libxml-libxml-perl (1.89+dfsg-1) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50...
update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
Setting up libxml-sax-expat-perl (0.40-2) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::Expat with priority 50...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...

You may want to make sure the problem is fixed for the next LTS release
:) Let me know if you'd like me to test anything or post more
information.

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libxml-sax-perl in Ubuntu.
https://bugs.launchpad.net/bugs/663612

Title:
  package libxml-sax-perl 0.96 dfsg-2 failed to install/upgrade:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml-sax-perl/+bug/663612/+subscriptions


References