[Bug 901741] [NEW] perl-moules lucid->precise upgrade failure

Thomas Bushnell, BSG 901741 at bugs.launchpad.net
Thu Dec 8 16:07:00 UTC 2011


Public bug reported:

Upgrading from lucid to precise finds a problem with the defoma
invocation in the prerm of the libwmf0.2-7 package, when upgrading from
0.2.8.4-6.1ubuntu2 to 0.2.8.4-8.1ubuntu1, and with apt-get's invocation
of debsums.

The error reported is this, from dpkg (via apt-get):

Can't locate File/Find.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/debsums line 10.
BEGIN failed--compilation aborted at /usr/bin/debsums line 10.

Likewise, the prerm in libwmf0.2-7 runs "defoma-app clean libwmf0.2-7",
and gets this error:

Can't locate File/Copy.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/defoma-app line 7.
BEGIN failed--compilation aborted at /usr/bin/defoma-app line 7.

At the time this runs, defoma version 0.11.10-4ubuntu1 is installed;
0.11.12ubuntu1 is the candidate but has not been fetched or installed.
Note that this complies with libwmf0.2-7's defoma dependency (defoma (>=
0.11)).

Likewise, debsums version 2.0.48 is installed, with 2.0.49 as the
candidate, but not yet fetched or installed.

Before the upgrade, the relevant perl files were found at
/usr/share/perl/5.10.1/File/Copy.pm and
/usr/share/perl/5.10.1/File/Find.pm, from perl-modules version
5.10.1-8ubuntu2.1.

At the time of the errors, however, perl-modules has been upgraded, and
now version 5.14.2-5ubuntu1 is installed. Both File/Copy.pm and
File/Find.pm are in their expected places at /usr/share/perl/5.14.2.

The root problem seems to be that perl-base and perl-modules are out of
sync; perl-base is at version 5.10.1-8ubuntu2.1, with 5.14.2-5ubuntu1 as
candidate, but not yet unpacked or installed.

It seems that perl-modules depends on "perl (>= 5.14.2-1)", which in
turn depends on "perl-base (= 5.14.2-5ubuntu1)".

apt-get has correctly resolved these, and its invocation wishes to
install both, but at the time of the error, it has unpacked and
installed perl-modules, but has not yet done so for perl-base.

But alas, it does not know that they cannot be installed out-of-order.
I think a Pre-Depends of some sort is necessary here, to guarantee that
the modules (and perhaps some other things) are not upgraded before the
interpreter itself is ready for them, since the package management
system itself is dependent on perl.

** Affects: perl (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: libwmf (Ubuntu) => perl (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/901741

Title:
  perl-moules lucid->precise upgrade failure

Status in “perl” package in Ubuntu:
  New

Bug description:
  Upgrading from lucid to precise finds a problem with the defoma
  invocation in the prerm of the libwmf0.2-7 package, when upgrading
  from 0.2.8.4-6.1ubuntu2 to 0.2.8.4-8.1ubuntu1, and with apt-get's
  invocation of debsums.

  The error reported is this, from dpkg (via apt-get):

  Can't locate File/Find.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/debsums line 10.
  BEGIN failed--compilation aborted at /usr/bin/debsums line 10.

  Likewise, the prerm in libwmf0.2-7 runs "defoma-app clean
  libwmf0.2-7", and gets this error:

  Can't locate File/Copy.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/bin/defoma-app line 7.
  BEGIN failed--compilation aborted at /usr/bin/defoma-app line 7.

  At the time this runs, defoma version 0.11.10-4ubuntu1 is installed;
  0.11.12ubuntu1 is the candidate but has not been fetched or installed.
  Note that this complies with libwmf0.2-7's defoma dependency (defoma
  (>= 0.11)).

  Likewise, debsums version 2.0.48 is installed, with 2.0.49 as the
  candidate, but not yet fetched or installed.

  Before the upgrade, the relevant perl files were found at
  /usr/share/perl/5.10.1/File/Copy.pm and
  /usr/share/perl/5.10.1/File/Find.pm, from perl-modules version
  5.10.1-8ubuntu2.1.

  At the time of the errors, however, perl-modules has been upgraded,
  and now version 5.14.2-5ubuntu1 is installed. Both File/Copy.pm and
  File/Find.pm are in their expected places at /usr/share/perl/5.14.2.

  The root problem seems to be that perl-base and perl-modules are out
  of sync; perl-base is at version 5.10.1-8ubuntu2.1, with
  5.14.2-5ubuntu1 as candidate, but not yet unpacked or installed.

  It seems that perl-modules depends on "perl (>= 5.14.2-1)", which in
  turn depends on "perl-base (= 5.14.2-5ubuntu1)".

  apt-get has correctly resolved these, and its invocation wishes to
  install both, but at the time of the error, it has unpacked and
  installed perl-modules, but has not yet done so for perl-base.

  But alas, it does not know that they cannot be installed out-of-order.
  I think a Pre-Depends of some sort is necessary here, to guarantee
  that the modules (and perhaps some other things) are not upgraded
  before the interpreter itself is ready for them, since the package
  management system itself is dependent on perl.

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




More information about the foundations-bugs mailing list