package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: /usr/share/perl5 missing from perl path (with perl installed in /usr/local)

Bug #1407744 reported by Matt Tessier
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql-common (Ubuntu)
New
Low
Unassigned

Bug Description

was upgrading from 14.04 to the latest version via the command line

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10
ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
Uname: Linux 3.13.0-43-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Mon Jan 5 15:33:09 2015
DuplicateSignature: package:postgresql-9.4:9.4~rc1-1~0ubuntu0.14.10:subprocess installed post-installation script returned error exit status 2
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2013-12-14 (386 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: postgresql-9.4
Title: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to utopic on 2015-01-05 (0 days ago)

Revision history for this message
Matt Tessier (mcgoatcheese) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Martin Pitt (pitti) wrote :

This is the relevant part of the upgrade log for perl, p-common, and p-9.4:

Unpacking perl (5.20.1-1) over (5.18.2-2ubuntu1) ...
Selecting previously unselected package libperl5.20.
Preparing to unpack .../libperl5.20_5.20.1-1_amd64.deb ...
Unpacking libperl5.20 (5.20.1-1) ...
[...]
Unpacking perl-base (5.20.1-1) over (5.18.2-2ubuntu1) ...
[...]
Setting up perl-modules (5.20.1-1) ...
[...]
Setting up perl (5.20.1-1) ...
[...]
Setting up postgresql-common (162) ...
[...]
Setting up postgresql-9.4 (9.4~rc1-1~0ubuntu0.14.10) ...
Can't locate PgCommon.pm in @INC (you may need to install the PgCommon module) (@INC contains: /usr/share/postgresql-common /usr/local/lib/perl5/site_perl/5.20.0/x86_64-linux /usr/local/lib/perl5/site_perl/5.20.0 /usr/local/lib/perl5/5.20.0/x86_64-linux /usr/local/lib/perl5/5.20.0 .).

So the unpack/configure order seems fine to me. But indeed your @INC is incomplete: /usr/share/perl5/ and sr/share/perl/5.20 (and a few others) are missing entirely. Can you please give me the output of these commands:

  which perl
  perl -e 'use foo'

summary: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
- install/upgrade: subprocess installed post-installation script returned
- error exit status 2
+ install/upgrade: /usr/share/perl5 missing from perl path
affects: postgresql-9.4 (Ubuntu) → postgresql-common (Ubuntu)
Changed in postgresql-common (Ubuntu):
status: New → Incomplete
Revision history for this message
Matt Tessier (mcgoatcheese) wrote : Re: [Bug 1407744] Re: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Download full text (3.5 KiB)

 *which perl*
/usr/local/bin/perl

* perl -e 'use foo'*
Can't locate foo.pm in @INC (you may need to install the foo module) (@INC
contains: /usr/local/lib/perl5/site_perl/5.20.0/x86_64-linux
/usr/local/lib/perl5/site_perl/5.20.0
/usr/local/lib/perl5/5.20.0/x86_64-linux /usr/local/lib/perl5/5.20.0 .) at
-e line 1.
BEGIN failed--compilation aborted at -e line 1.

Matt

On Tue, Jan 6, 2015 at 5:41 AM, Martin Pitt <email address hidden> wrote:

> This is the relevant part of the upgrade log for perl, p-common, and
> p-9.4:
>
> Unpacking perl (5.20.1-1) over (5.18.2-2ubuntu1) ...
> Selecting previously unselected package libperl5.20.
> Preparing to unpack .../libperl5.20_5.20.1-1_amd64.deb ...
> Unpacking libperl5.20 (5.20.1-1) ...
> [...]
> Unpacking perl-base (5.20.1-1) over (5.18.2-2ubuntu1) ...
> [...]
> Setting up perl-modules (5.20.1-1) ...
> [...]
> Setting up perl (5.20.1-1) ...
> [...]
> Setting up postgresql-common (162) ...
> [...]
> Setting up postgresql-9.4 (9.4~rc1-1~0ubuntu0.14.10) ...
> Can't locate PgCommon.pm in @INC (you may need to install the PgCommon
> module) (@INC contains: /usr/share/postgresql-common
> /usr/local/lib/perl5/site_perl/5.20.0/x86_64-linux
> /usr/local/lib/perl5/site_perl/5.20.0
> /usr/local/lib/perl5/5.20.0/x86_64-linux /usr/local/lib/perl5/5.20.0 .).
>
> So the unpack/configure order seems fine to me. But indeed your @INC is
> incomplete: /usr/share/perl5/ and sr/share/perl/5.20 (and a few others)
> are missing entirely. Can you please give me the output of these
> commands:
>
> which perl
> perl -e 'use foo'
>
>
> ** Summary changed:
>
> - package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: subprocess installed post-installation script returned
> error exit status 2
> + package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: /usr/share/perl5 missing from perl path
>
> ** Package changed: postgresql-9.4 (Ubuntu) => postgresql-common
> (Ubuntu)
>
> ** Changed in: postgresql-common (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1407744
>
> Title:
> package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: /usr/share/perl5 missing from perl path
>
> Status in postgresql-common package in Ubuntu:
> Incomplete
>
> Bug description:
> was upgrading from 14.04 to the latest version via the command line
>
> ProblemType: Package
> DistroRelease: Ubuntu 14.10
> Package: postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10
> ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
> Uname: Linux 3.13.0-43-generic x86_64
> ApportVersion: 2.14.7-0ubuntu8
> Architecture: amd64
> Date: Mon Jan 5 15:33:09 2015
> DuplicateSignature:
> package:postgresql-9.4:9.4~rc1-1~0ubuntu0.14.10:subprocess installed
> post-installation script returned error exit status 2
> ErrorMessage: subprocess installed post-installation script returned
> error exit status 2
> InstallationDate: Installed on 2013-12-14 (386 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64
> (20131016.1)
> SourcePackage: ...

Read more...

Revision history for this message
Martin Pitt (pitti) wrote : Re: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: /usr/share/perl5 missing from perl path

Ah, you have a local perl installed which is misconfigured to not include /usr/share/perl5/ into its search path. I figure this would break a *lot* of things on your computer, certainly far more than just postgresql?

summary: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
- install/upgrade: /usr/share/perl5 missing from perl path
+ install/upgrade: /usr/share/perl5 missing from perl path (with perl
+ installed in /usr/local)
Changed in postgresql-common (Ubuntu):
importance: Undecided → Low
status: Incomplete → New
Revision history for this message
Matt Tessier (mcgoatcheese) wrote : Re: [Bug 1407744] Re: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: /usr/share/perl5 missing from perl path

I did a *do-release-upgrade* and the only thing that failed from the
process was this postgres piece.

I manually added "/usr/lib/perl5" to the PERL5LIB environment variable and
the upgrade completed properly.

I'm going to clean up and attempt to correct this. thanks

Matt

On Tue, Jan 6, 2015 at 8:24 AM, Martin Pitt <email address hidden> wrote:

> Ah, you have a local perl installed which is misconfigured to not
> include /usr/share/perl5/ into its search path. I figure this would
> break a *lot* of things on your computer, certainly far more than just
> postgresql?
>
> ** Summary changed:
>
> - package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: /usr/share/perl5 missing from perl path
> + package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: /usr/share/perl5 missing from perl path (with perl
> installed in /usr/local)
>
> ** Changed in: postgresql-common (Ubuntu)
> Importance: Undecided => Low
>
> ** Changed in: postgresql-common (Ubuntu)
> Status: Incomplete => New
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1407744
>
> Title:
> package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: /usr/share/perl5 missing from perl path (with perl
> installed in /usr/local)
>
> Status in postgresql-common package in Ubuntu:
> New
>
> Bug description:
> was upgrading from 14.04 to the latest version via the command line
>
> ProblemType: Package
> DistroRelease: Ubuntu 14.10
> Package: postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10
> ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
> Uname: Linux 3.13.0-43-generic x86_64
> ApportVersion: 2.14.7-0ubuntu8
> Architecture: amd64
> Date: Mon Jan 5 15:33:09 2015
> DuplicateSignature:
> package:postgresql-9.4:9.4~rc1-1~0ubuntu0.14.10:subprocess installed
> post-installation script returned error exit status 2
> ErrorMessage: subprocess installed post-installation script returned
> error exit status 2
> InstallationDate: Installed on 2013-12-14 (386 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64
> (20131016.1)
> SourcePackage: postgresql-9.4
> Title: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to
> install/upgrade: subprocess installed post-installation script returned
> error exit status 2
> UpgradeStatus: Upgraded to utopic on 2015-01-05 (0 days ago)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1407744/+subscriptions
>

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.